From b481b99441e0c0118c8759168bc97bee06cf510e Mon Sep 17 00:00:00 2001 From: ClemDee Date: Mon, 12 Aug 2019 11:44:04 +0200 Subject: [PATCH] Fix infinite function call recursion in whiteboard --- www/whiteboard/inner.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/whiteboard/inner.js b/www/whiteboard/inner.js index 18a99b7de..e744a22a3 100644 --- a/www/whiteboard/inner.js +++ b/www/whiteboard/inner.js @@ -254,6 +254,12 @@ define([ updateLocalPalette(palette); + metadataMgr.onChange(function () { + var md = metadataMgr.getMetadata(); + if (md.palette) { + updatePalette(md.palette); + } + }); return { palette: palette,