overleaf/services/web/app/coffee/Features/StaticPages/StaticPageHelpers.coffee
2014-10-08 16:07:44 +01:00

12 lines
266 B
CoffeeScript

extensionsToProxy = [".png", ".xml", ".jpeg", ".json", ".zip", ".eps", ".gif", ".jpg"]
_ = require("underscore")
module.exports =
shouldProxy: (url)->
shouldProxy = _.find extensionsToProxy, (extension)->
url.indexOf(extension) != -1
return shouldProxy