mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02: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
|
|
|
|
|
|
|
|
|