Skip to content

Commit 2c6a95b

Browse files
committed
fixed safari responsive image bug
1 parent 0cdeb2a commit 2c6a95b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/js/app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@
299299
children[imageToDisplay].style.display = 'block';
300300
lastActiveImage = imageToDisplay;
301301
}
302+
} else {
303+
//make sure for initial check call the .src is set correctly
304+
children[imageToDisplay].src = sources[imageToDisplay];
302305
}
303306
}
304307

@@ -835,7 +838,7 @@ function example5(){
835838
box[0].innerHTML = (++changed) + ' changes. ' + box.parent()[0].clientWidth+'px/'+box.parent()[0].clientHeight+'px';
836839
});
837840
}
838-
}).call(this,require("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_ef7dd2a2.js","/")
841+
}).call(this,require("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_cb029744.js","/")
839842
},{"./css-element-queries/src/ElementQueries":1,"./css-element-queries/src/ResizeSensor":2,"buffer":5,"codemirror/lib/codemirror":6,"codemirror/mode/css/css":7,"codemirror/mode/htmlmixed/htmlmixed":8,"codemirror/mode/javascript/javascript":9,"codemirror/mode/xml/xml":10,"g5I+bs":14,"hammerjs/hammer":11,"jQuery":13}],4:[function(require,module,exports){
840843
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
841844
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

0 commit comments

Comments
 (0)