]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix one more place
authorSimon L <szaimen@e.mail.de>
Fri, 16 Jun 2023 12:13:22 +0000 (14:13 +0200)
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>
Sat, 24 Jun 2023 14:54:11 +0000 (16:54 +0200)
Signed-off-by: Simon L <szaimen@e.mail.de>
core/src/Polyfill/tooltip.js

index 452cb30305bdd365fc46bc3aecbf86e88296ca99..eeb52580957197baa19563a6feab708a03ccb131 100644 (file)
@@ -31,13 +31,13 @@ $.prototype.tooltip = (function(tooltip) {
                } catch (ex) {
                        if (ex instanceof TypeError && config === 'destroy') {
                                if (window.TESTING === undefined) {
-                                       console.error('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed')
+                                       OC.debug && console.debug('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed')
                                }
                                return tooltip.call(this, 'dispose')
                        }
                        if (ex instanceof TypeError && config === 'fixTitle') {
                                if (window.TESTING === undefined) {
-                                       console.error('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed')
+                                       OC.debug && console.debug('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed')
                                }
                                return tooltip.call(this, '_fixTitle')
                        }