mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-13 18:16:19 +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()
|
js: scope.cm.js.getValue()
|
||||||
};
|
};
|
||||||
utils.log('🔎 setPreviewContent', isForced);
|
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),
|
// If just CSS was changed (and everything shudn't be empty),
|
||||||
// change the styles inside the iframe.
|
// change the styles inside the iframe.
|
||||||
|
Reference in New Issue
Block a user