mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
get data for tab
This commit is contained in:
@@ -5,12 +5,12 @@ document.addEventListener('DOMContentLoaded', (event) => {
|
||||
if ((typeof safari !== 'undefined')) {
|
||||
const responseCommand = 'autofillerAutofillOnPageLoadEnabledResponse';
|
||||
safari.self.tab.dispatchMessage('bitwarden', {
|
||||
command: 'bgGetAutofillOnPageLoadEnabled',
|
||||
command: 'bgGetDataForTab',
|
||||
responseCommand: responseCommand
|
||||
});
|
||||
safari.self.addEventListener('message', function (msgEvent) {
|
||||
const msg = msgEvent.message;
|
||||
if (msg.command === responseCommand && msg.data === true) {
|
||||
if (msg.command === responseCommand && msg.data[enabledKey] === true) {
|
||||
setInterval(doFillIfNeeded, 500);
|
||||
}
|
||||
}, false);
|
||||
|
||||
@@ -19,7 +19,7 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
||||
if (isSafariApi) {
|
||||
const responseCommand = 'notificationBarDataResponse';
|
||||
safari.self.tab.dispatchMessage('bitwarden', {
|
||||
command: 'bgGetNotificationBarData',
|
||||
command: 'bgGetDataForTab',
|
||||
responseCommand: responseCommand
|
||||
});
|
||||
safari.self.addEventListener('message', function (msgEvent) {
|
||||
|
||||
Reference in New Issue
Block a user