Skip to content

Commit

Permalink
Small Tisho optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbok committed Jun 17, 2014
1 parent 536cf90 commit 9a0f05e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framer/Layer.coffee
Expand Up @@ -364,7 +364,8 @@ class exports.Layer extends BaseClass
# imageUrl = Config.baseUrl + imageUrl # imageUrl = Config.baseUrl + imageUrl


# If the file is local, we want to avoid caching # 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()}" imageUrl += "?nocache=#{Date.now()}"


# As an optimization, we will only use a loader # As an optimization, we will only use a loader
Expand Down

0 comments on commit 9a0f05e

Please sign in to comment.