mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-27 03:11:35 +01:00
dont load notification bar in iframe on safari
This commit is contained in:
parent
193de9fcdf
commit
8f51c278ef
@ -19,6 +19,10 @@ document.addEventListener('DOMContentLoaded', (event) => {
|
|||||||
navigator.userAgent.indexOf('Chrome') === -1;
|
navigator.userAgent.indexOf('Chrome') === -1;
|
||||||
|
|
||||||
if (isSafari) {
|
if (isSafari) {
|
||||||
|
if (inIframe) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const responseCommand = 'notificationBarDataResponse';
|
const responseCommand = 'notificationBarDataResponse';
|
||||||
safari.self.tab.dispatchMessage('bitwarden', {
|
safari.self.tab.dispatchMessage('bitwarden', {
|
||||||
command: 'bgGetDataForTab',
|
command: 'bgGetDataForTab',
|
||||||
|
Loading…
Reference in New Issue
Block a user