1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-13 10:06:23 +02:00

fix only css updation in detached windows style tag.

This commit is contained in:
Kushagra Gour
2017-10-27 00:45:00 +05:30
parent 60481b7c9d
commit f8df8afd4b

View File

@ -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.