From e4f92341ce0870d6e6c5229144754ddeae5b405f Mon Sep 17 00:00:00 2001 From: Antipkin-A Date: Mon, 20 May 2024 21:13:24 +0300 Subject: [PATCH] check systemtags app --- src/settings.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/settings.js b/src/settings.js index d1f50476..cb6894d2 100644 --- a/src/settings.js +++ b/src/settings.js @@ -143,14 +143,15 @@ watermarkNodeBehaviour(watermarkGroup); }); - OC.SystemTags.collection.fetch({ - success: function () { - $.each(watermarkTagLists, function (i, watermarkTag) { - watermarkNodeBehaviour(watermarkTag); - }); - } - }); - + if (OC.SystemTags && OC.SystemTags.collection) { + OC.SystemTags.collection.fetch({ + success: function () { + $.each(watermarkTagLists, function (i, watermarkTag) { + watermarkNodeBehaviour(watermarkTag); + }); + } + }); + } $("#onlyofficeAddrSave").click(function () { $(".section-onlyoffice").addClass("icon-loading");