aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/jquery
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-06-16 14:03:23 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-06-24 16:54:11 +0200
commit872483f279732908d60d1a85abedcc8fb79a625a (patch)
treeb8efe26dd07d335bc3e6f38db8a3da3bc4ed9e91 /core/src/jquery
parent1afc82327aecbd372ddcd5bf8306bcb3722700ed (diff)
downloadnextcloud-server-872483f279732908d60d1a85abedcc8fb79a625a.tar.gz
nextcloud-server-872483f279732908d60d1a85abedcc8fb79a625a.zip
only print deprecation logs if debug mode is enabled
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'core/src/jquery')
-rw-r--r--core/src/jquery/placeholder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/jquery/placeholder.js b/core/src/jquery/placeholder.js
index d91c94c18ac..b77692fdf39 100644
--- a/core/src/jquery/placeholder.js
+++ b/core/src/jquery/placeholder.js
@@ -140,7 +140,7 @@ const toRgb = (s) => {
}
String.prototype.toRgb = function() {
- console.debug('String.prototype.toRgb is deprecated! It will be removed in Nextcloud 22.')
+ OC.debug && console.debug('String.prototype.toRgb is deprecated! It will be removed in Nextcloud 22.')
return toRgb(this)
}