mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
13 lines
266 B
CoffeeScript
13 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
|
||
|
|
||
|
|
||
|
|
||
|
|