Skip to content
Permalink
Browse files

Only cache images if they are local

  • Loading branch information
koenbok committed Apr 20, 2014
1 parent e95bf6b commit 68e7cd488cf812bb2cabf27dd693bde35df5d280
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/utils.coffee
@@ -135,6 +135,9 @@ exports.isChrome = ->
exports.isLocal = ->
window.location.href[0..6] == "file://"

exports.isLocalFile = (url) ->
url[0..6] == "file://"

exports.devicePixelRatio = ->
window.devicePixelRatio

0 comments on commit 68e7cd4

Please sign in to comment.