File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
backfire/media/backfire/js Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,10 @@ var Backfire = (function () {
208
208
if ( pair == "" ) continue ;
209
209
var nameValue = ( pairs [ i ] + "" ) . split ( ':' ) ;
210
210
var name = nameValue [ 0 ] . replace ( / ^ \s * | \s * $ / gi, "" ) ;
211
- var value = nameValue [ 1 ] . replace ( / ^ \s * | \s * $ / gi, "" ) ;
212
- this . declarations [ name ] = value ;
211
+ if ( nameValue [ 1 ] != undefined ) {
212
+ var value = nameValue [ 1 ] . replace ( / ^ \s * | \s * $ / gi, "" ) ;
213
+ this . declarations [ name ] = value ;
214
+ }
213
215
}
214
216
}
215
217
} ;
@@ -228,4 +230,4 @@ var Backfire = (function () {
228
230
} ) ( ) ;
229
231
230
232
// when the script is loaded dynamically, notify that it's ready
231
- if ( window . BackfireLoadedCallback ) window . BackfireLoadedCallback ( ) ;
233
+ if ( window . BackfireLoadedCallback ) window . BackfireLoadedCallback ( ) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function BackfireLoadedCallback() {
32
32
if ( enabled ) {
33
33
// add the css
34
34
var link = document . createElement ( 'link' ) ;
35
- link . href = "/media/css/backfire.css" ;
35
+ link . href = "/media/backfire/ css/backfire.css" ;
36
36
link . setAttribute ( 'rel' , 'stylesheet' ) ;
37
37
link . setAttribute ( 'type' , 'text/css' ) ;
38
38
link . setAttribute ( 'media' , 'screen' ) ;
You can’t perform that action at this time.
0 commit comments