fix JS errors that impede executing the rest of the JS (#170)

This commit is contained in:
Andreas Nedbal 2021-02-26 21:43:31 +01:00 committed by GitHub
parent 7a62f7d2c9
commit 17a177cc4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -2,6 +2,7 @@ import 'core-js/stable'
import 'regenerator-runtime/runtime'
import '../legacy/jquery'
import 'bootstrap'
import {} from 'jquery-ujs'
import 'jquery.guillotine'
import 'particleground/jquery.particleground.min'
@ -34,9 +35,6 @@ import '../legacy/util'
window.moment = moment
NProgress.configure
showSpinner: false
window.translate = (scope, options) ->
# for some reason I18n errors when calling it by assign proxy, so we got to wrap it
I18n.translate(scope, options)