Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Small Tisho optimization
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+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 |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.