mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 06:50:51 +00:00
added remove extension
This commit is contained in:
parent
65efbbce53
commit
88334959d7
2 changed files with 4 additions and 1 deletions
|
@ -157,6 +157,9 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
|||
|
||||
qs = querystring.stringify(opts.qs)
|
||||
|
||||
if opts.removeExtension == true
|
||||
path = path.slice(0,-3)
|
||||
|
||||
if qs? and qs.length > 0
|
||||
path = path + "?" + qs
|
||||
return path
|
||||
|
|
|
@ -143,7 +143,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
"paths" : {
|
||||
"moment": "libs/#{lib('moment')}",
|
||||
"fineuploader": "libs/#{lib('fineuploader')}",
|
||||
"main": "#{buildJsPath('main.js', {hashedPath:true, fingerprint:false}).slice(0,-3)}",
|
||||
"main": "#{buildJsPath('main.js', {hashedPath:true, fingerprint:false, removeExtension:true})}"
|
||||
},
|
||||
"config":{
|
||||
"moment":{
|
||||
|
|
Loading…
Reference in a new issue