Update preview on keystroke

Also removes need to check for unfinished html comments
This commit is contained in:
Berkeley Martinez
2015-11-23 23:47:14 -08:00
parent e8d9e31a47
commit 159b202940
3 changed files with 28 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ window.common = (function(global) {
.map(script => `<script>${script}</script>`)
.flatMap(script => {
preview.open();
preview.write(libraryIncludes + code + script);
preview.write(libraryIncludes + code + '<!-- -->' + script);
preview.close();
return Observable.fromCallback($(preview).ready, $(preview))()
.first()