mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1069816: App name is appended to the document title on Windows and Linux, so authentication failed. r=abr
Bug 1069816: App name is appended to the document title on Windows and Linux, so authentication failed. r=abr
This commit is contained in:
parent
7c941e7bde
commit
8c4d60ed1d
@ -222,7 +222,7 @@ this.GoogleImporter.prototype = {
|
||||
throw new Error("Popup window was closed before authentication succeeded");
|
||||
}
|
||||
|
||||
let matches = gAuthWindow.document.title.match(/(error|code)=(.*)$/);
|
||||
let matches = gAuthWindow.document.title.match(/(error|code)=([^\s]+)/);
|
||||
if (matches && matches.length) {
|
||||
let [, type, message] = matches;
|
||||
gAuthWindow.close();
|
||||
|
Loading…
Reference in New Issue
Block a user