From 6fcd075730dbd63d5dbb69da0ca5983b51a7240e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 20 Jul 2020 12:30:35 +0200 Subject: Use DOMContentLoaded and fix sharebymail loading issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/theming/js/settings-admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/theming/js') diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js index 81b10bcc08e..6f76def6910 100644 --- a/apps/theming/js/settings-admin.js +++ b/apps/theming/js/settings-admin.js @@ -103,7 +103,7 @@ function hideUndoButton(setting, value) { } } -$(document).ready(function () { +window.addEventListener('DOMContentLoaded', function () { $('#theming [data-toggle="tooltip"]').tooltip(); // manually instantiate jscolor to work around new Function call which violates strict CSP -- cgit v1.2.3