overleaf/services/web/app/coffee/Features/StaticPages/StaticPageHelpers.coffee

13 lines
266 B
CoffeeScript
Raw Normal View History

2014-10-08 15:07:44 +00:00
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