Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Only cache images if they are local
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+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 |
|
|
|
|
|