listen for events in safari on bg runtime
This commit is contained in:
parent
f01ee13102
commit
6c7646a481
|
@ -39,7 +39,7 @@
|
||||||
<key>Filename</key>
|
<key>Filename</key>
|
||||||
<string>popup/index.html</string>
|
<string>popup/index.html</string>
|
||||||
<key>Height</key>
|
<key>Height</key>
|
||||||
<integer>667</integer>
|
<integer>600</integer>
|
||||||
<key>Identifier</key>
|
<key>Identifier</key>
|
||||||
<string>bitwarden-popup</string>
|
<string>bitwarden-popup</string>
|
||||||
<key>Width</key>
|
<key>Width</key>
|
||||||
|
@ -73,6 +73,7 @@
|
||||||
<key>Start</key>
|
<key>Start</key>
|
||||||
<array>
|
<array>
|
||||||
<string>content/autofill.js</string>
|
<string>content/autofill.js</string>
|
||||||
|
<string>content/autofiller.js</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Stylesheets</key>
|
<key>Stylesheets</key>
|
||||||
|
|
|
@ -48,10 +48,7 @@ export default class RuntimeBackground {
|
||||||
win.location.href = href;
|
win.location.href = href;
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
|
} else {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.runtime.onInstalled) {
|
if (this.runtime.onInstalled) {
|
||||||
this.runtime.onInstalled.addListener((details: any) => {
|
this.runtime.onInstalled.addListener((details: any) => {
|
||||||
(window as any).ga('send', {
|
(window as any).ga('send', {
|
||||||
|
@ -64,6 +61,7 @@ export default class RuntimeBackground {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
BrowserApi.messageListener(async (msg: any, sender: any, sendResponse: any) => {
|
BrowserApi.messageListener(async (msg: any, sender: any, sendResponse: any) => {
|
||||||
await this.processMessage(msg, sender, sendResponse);
|
await this.processMessage(msg, sender, sendResponse);
|
||||||
|
|
Loading…
Reference in New Issue