mirror of
https://github.com/bitwarden/browser
synced 2025-12-30 23:23:52 +00:00
vhange to safari.extension.dispatchMessage
This commit is contained in:
@@ -25,7 +25,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
submit_callback: (theForm: Document) => {
|
||||
const sigElement = theForm.querySelector('input[name="sig_response"]') as HTMLInputElement;
|
||||
if (sigElement) {
|
||||
safari.self.tab.dispatchMessage('bitwarden', {
|
||||
safari.extension.dispatchMessage('bitwarden', {
|
||||
command: '2faPageResponse',
|
||||
type: 'duo',
|
||||
data: {
|
||||
@@ -36,7 +36,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
},
|
||||
});
|
||||
} else if (msg.data.type === 'success') {
|
||||
safari.self.tab.dispatchMessage('bitwarden', {
|
||||
safari.extension.dispatchMessage('bitwarden', {
|
||||
command: 'openPopup',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user