Skip to content

Commit 0c69544

Browse files
committed
Detect scratch-render-fonts stylesheet as well
1 parent 41bf5dd commit 0c69544

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unpackager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ var unpackage = (function() {
436436

437437
// Look for various hints that this is an export of the HTML after the project has loaded.
438438
if (
439+
// scratch-render-fonts will add this stylesheet:
440+
text.includes('<style class="scratch-render-styles"') ||
441+
// TurboWarp Packager's Scaffolding will add various elements:
439442
text.includes('<div class="sc-layers"') ||
440443
text.includes('<canvas class="sc-canvas"') ||
441444
text.includes('<div class="scratch-render-overlays"') ||

0 commit comments

Comments
 (0)