Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 854938d

Browse files
shinytang6catarak
authored andcommitted
minor tweak
1 parent 474757b commit 854938d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class PreviewFrame extends React.Component {
179179
}
180180

181181
const previewScripts = sketchDoc.createElement('script');
182-
previewScripts.src = 'previewScripts.js';
182+
previewScripts.src = '/previewScripts.js';
183183
sketchDoc.head.appendChild(previewScripts);
184184

185185
const sketchDocString = `<!DOCTYPE HTML>\n${sketchDoc.documentElement.outerHTML}`;

client/utils/previewEntry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import loopProtect from 'loop-protect';
22
import Hook from 'console-feed/lib/Hook/index';
33

4-
window.loopProtext = loopProtect;
4+
window.loopProtect = loopProtect;
55

66
const consoleBuffer = [];
77
const LOGWAIT = 500;

0 commit comments

Comments
 (0)