Node.js based forum software built for the modern web
fix: #8151, don't crash if taskbar doesn't have element
Baris Usakli2e794801799b
diff --git a/public/src/modules/taskbar.js b/public/src/modules/taskbar.jsindex ad4a31d4ce..3e1c8567f9 100644--- a/public/src/modules/taskbar.js+++ b/public/src/modules/taskbar.js@@ -200,6 +200,9 @@ define('taskbar', ['benchpress', 'translator'], function (Benchpress, translatortaskbar.update = function (module, uuid, options) {var element = taskbar.tasklist.find('[data-module="' + module + '"][data-uuid="' + uuid + '"]');+ if (!element.length) {+ return;+ }var data = element.data();Object.keys(options).forEach(function (key) {