mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 08:39:03 +02:00
1be43911b4
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
32 lines
655 B
JavaScript
32 lines
655 B
JavaScript
/* eslint-disable
|
|
max-len,
|
|
*/
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
// Fix any style issues and re-enable lint.
|
|
/*
|
|
* decaffeinate suggestions:
|
|
* DS102: Remove unnecessary code created because of implicit returns
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
*/
|
|
const extensionsToProxy = [
|
|
'.png',
|
|
'.xml',
|
|
'.jpeg',
|
|
'.json',
|
|
'.zip',
|
|
'.eps',
|
|
'.gif',
|
|
'.jpg',
|
|
]
|
|
const _ = require('underscore')
|
|
|
|
module.exports = {
|
|
shouldProxy(url) {
|
|
const shouldProxy = _.find(
|
|
extensionsToProxy,
|
|
extension => url.indexOf(extension) !== -1
|
|
)
|
|
return shouldProxy
|
|
},
|
|
}
|