mirror of
https://github.com/chinchang/web-maker.git
synced 2025-02-23 14:44:53 +01:00
fix only css updation in detached windows style tag.
This commit is contained in:
parent
60481b7c9d
commit
f8df8afd4b
@ -1090,7 +1090,9 @@ globalConsoleContainerEl
|
||||
js: scope.cm.js.getValue()
|
||||
};
|
||||
utils.log('🔎 setPreviewContent', isForced);
|
||||
const targetFrame = scope.detachedWindow ? scope.detachedWindow : frame;
|
||||
const targetFrame = scope.detachedWindow
|
||||
? scope.detachedWindow.document.querySelector('iframe')
|
||||
: frame;
|
||||
|
||||
// If just CSS was changed (and everything shudn't be empty),
|
||||
// change the styles inside the iframe.
|
||||
|
Loading…
x
Reference in New Issue
Block a user