mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-13 01:56:24 +02:00
fix only css updation in detached windows style tag.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user