File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
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 @@ -309,13 +309,10 @@ if (typeof Snap !== "undefined") (function () {
309309 registerTheme ( "simple" , SnapTheme ) ;
310310 registerTheme ( "hand" , SnapHandTheme ) ;
311311
312- $ ( "body" ) . prepend ( "<div style='font-family: Daniel; position: absolute;top:-1000px;'>js-sequence. make sure font is loaded. This should be invisible</div>" ) ;
313-
314- if ( typeof WebFont !== "undefined" ) {
315- WebFont . load ( {
316- custom : {
317- families : [ 'Daniel' ]
318- }
319- } ) ;
312+ if ( typeof document !== "undefined" ) {
313+ var element = document . createElement ( "div" ) ;
314+ element . style . cssText = "font-family: Daniel; position: absolute;top:-1000px;" ;
315+ element . innerHTML = 'js-sequence: This is inserted to make sure the font is loaded. This should be invisible in the page' ;
316+ document . body . insertBefore ( element , document . body . firstChild ) ;
320317 }
321318} ) ( ) ;
Original file line number Diff line number Diff line change 6060 < script src ="../bower_components/underscore/underscore-min.js "> </ script >
6161 < script src ="../bower_components/lodash/lodash.min.js "> </ script >
6262 < script src ="../bower_components/snap.svg/dist/snap.svg.js "> </ script >
63- < script src ="../bower_components/bower-webfontloader/webfont.js "> </ script >
6463 < script src ="../bower_components/raphael/raphael-min.js "> </ script >
6564
6665
You can’t perform that action at this time.
0 commit comments