ZeroOmega/omega-target-chromium-extension/overlay/popup-iframe.js

15 lines
441 B
JavaScript
Raw Normal View History

2024-05-24 07:03:49 -04:00
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')
})