prevent promise rejection, we don't care about it here

This commit is contained in:
antelle 2017-12-25 19:01:47 +01:00
parent 0e63e955ce
commit 688e363c89
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ const StorageOneDrive = StorageBase.extend({
const script =
`const selector = '[role="button"][aria-describedby="tileError loginHeader"]';
if (document.querySelectorAll(selector).length === 1) document.querySelector(selector).click()`;
webContents.executeJavaScript(script);
webContents.executeJavaScript(script).catch(() => {});
}
});
}