Skip to content

Commit 3302aa8

Browse files
authored
fix mm snaps a tag (#552)
1 parent ffc7eca commit 3302aa8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/frontend/ExtensionManager/index.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const animation = {
2424

2525
const ExtensionManager = function () {
2626
const rootRef = useRef<HTMLDivElement>(null)
27+
const trueAsStr = 'true' as unknown as boolean | undefined
2728

2829
/* eslint-disable react/no-unknown-property */
2930
return (
@@ -36,6 +37,7 @@ const ExtensionManager = function () {
3637
webpreferences="contextIsolation=true, nodeIntegration=true"
3738
src={`chrome-extension://${extensionStore.extensionId}/popup.html`}
3839
className={ExtensionManagerStyles.mmWindow}
40+
allowpopups={trueAsStr}
3941
></webview>
4042
</motion.div>
4143
) : null}
@@ -46,6 +48,7 @@ const ExtensionManager = function () {
4648
webpreferences="contextIsolation=true, nodeIntegration=true"
4749
src={`chrome-extension://${extensionStore.extensionId}/notification.html`}
4850
className={ExtensionManagerStyles.mmWindow}
51+
allowpopups={trueAsStr}
4952
></webview>
5053
</motion.div>
5154
) : null}

0 commit comments

Comments
 (0)