File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2323 "underscore" : " ~1.4.x" ,
2424 "raphael" : " ~2.1.x" ,
2525 "snap.svg" : " ~0.4.1" ,
26- "bower-webfontloader" : " ~1.5.16"
2726 },
2827 "devDependencies" : {
2928 "qunit" : " 1.11.x" ,
Original file line number Diff line number Diff line change @@ -313,7 +313,10 @@ if (typeof Snap !== "undefined") (function () {
313313 registerTheme ( "simple" , SnapTheme ) ;
314314 registerTheme ( "hand" , SnapHandTheme ) ;
315315
316- $ ( "body" ) . prepend ( "<div style='font-family: Daniel; position: absolute;top:-1000px;'>js-sequence. make sure font is loaded. This should be invisible</div>" ) ;
317-
318-
316+ if ( typeof document !== "undefined" ) {
317+ var element = document . createElement ( "div" ) ;
318+ element . style . cssText = "font-family: Daniel; position: absolute;top:-1000px;" ;
319+ element . innerHTML = 'js-sequence: This is inserted to make sure the font is loaded. This should be invisible in the page' ;
320+ document . body . insertBefore ( element , document . body . firstChild ) ;
321+ }
319322} ) ( ) ;
Original file line number Diff line number Diff line change 6969 < script src ="../bower_components/underscore/underscore-min.js "> </ script >
7070 < script src ="../bower_components/lodash/lodash.min.js "> </ script >
7171 < script src ="../bower_components/snap.svg/dist/snap.svg.js "> </ script >
72- < script src ="../bower_components/bower-webfontloader/webfont.js "> </ script >
7372 < script src ="../bower_components/raphael/raphael-min.js "> </ script >
7473
7574
You can’t perform that action at this time.
0 commit comments