Log trace when deprecated globals are used

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
Christoph Wurst 2020-05-11 14:03:59 +02:00 committed by npmbuildbot[bot]
parent 901110f068
commit 13b34ca0be
11 changed files with 128 additions and 120 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

65
core/js/dist/login.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

83
core/js/dist/main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,11 +53,16 @@ import 'strengthify/strengthify.css'
import OC from './OC/index'
import OCP from './OCP/index'
import OCA from './OCA/index'
import { debug } from './OC/debug'
import escapeHTML from 'escape-html'
import { getToken as getRequestToken } from './OC/requesttoken'
const warnIfNotTesting = function() {
if (window.TESTING === undefined) {
const notTesting = window.TESTING === undefined
if (notTesting && debug) {
/* eslint-disable no-console */
console.trace.apply(console, arguments)
} else if (notTesting) {
console.warn.apply(console, arguments)
}
}