ZeroOmega/omega-target-chromium-extension/overlay/popup-iframe.js
2024-05-24 19:03:49 +08:00

15 lines
441 B
JavaScript

document.location.href = './popup/index.html'
// arc browser can't use location.href to change.
// https://github.com/suziwen/ZeroOmega/issues/4
$script('js/omega_target_popup.js', 'om-target', function() {
$script('popup/js/style.js', 'om-style')
iFrameResize({
sizeWidth: true,
autoResize: true,
resizeFrom: 'child',
heightCalculationMethod: 'bodyScroll',
widthCalculationMethod: 'bodyOffset'
}, '#myIframe')
})