Permalink
Browse files

Small Tisho optimization

  • Loading branch information...
koenbok committed Jun 17, 2014
1 parent 536cf90 commit 9a0f05e65dfcd15fb0801f8a1df518570b2fc29e
Showing with 2 additions and 1 deletion.
  1. +2 −1 framer/Layer.coffee
@@ -364,7 +364,8 @@ class exports.Layer extends BaseClass
# imageUrl = Config.baseUrl + imageUrl
# If the file is local, we want to avoid caching
if Utils.isLocal() and not (_.startsWith(imageUrl, "http://") or _.startsWith(imageUrl, "https://"))
# if Utils.isLocal() and not (_.startsWith(imageUrl, "http://") or _.startsWith(imageUrl, "https://"))
if Utils.isLocal() and not imageUrl.match(/^https?:\/\//)
imageUrl += "?nocache=#{Date.now()}"
# As an optimization, we will only use a loader

0 comments on commit 9a0f05e

Please sign in to comment.