mirror of
https://github.com/chinchang/web-maker.git
synced 2025-05-23 10:41:55 +02:00
stop main frame updation in detached mode. fixes #223
This commit is contained in:
parent
214f0d89b4
commit
a034fc6aae
@ -1065,13 +1065,15 @@ globalConsoleContainerEl
|
||||
// CSP from affecting it.
|
||||
writeFile('script.js', blobjs, function() {
|
||||
writeFile('preview.html', blob, function() {
|
||||
frame.src =
|
||||
const frameSrc =
|
||||
'filesystem:chrome-extension://' +
|
||||
chrome.i18n.getMessage('@@extension_id') +
|
||||
'/temporary/' +
|
||||
'preview.html';
|
||||
if (scope.detachedWindow) {
|
||||
scope.detachedWindow.postMessage(frame.src, '*');
|
||||
} else {
|
||||
frame.src = frameSrc;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user