From b8b23735129c6143d07efbcc208e38a0d725d62e Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 12 Jan 2021 14:05:43 +0100 Subject: [PATCH] Fix slides colors reset --- www/slide/inner.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/www/slide/inner.js b/www/slide/inner.js index de30eb9fc..e3070118e 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -357,7 +357,7 @@ define([ }; var updateLocalColors = function (text, back) { updateColors(text, back); - var metadata = JSON.parse(JSON.stringify(metadataMgr.getMetadata())); + var metadata = JSON.parse(JSON.stringify(metadataMgr.getMetadataLazy())); if (backColor) { metadata.backColor = backColor; } if (textColor) { metadata.color = textColor; } metadataMgr.updateMetadata(metadata); @@ -527,8 +527,6 @@ define([ if (newPad) { colors.updateLocalColors('#000', '#FFF'); - } else { - colors.updateLocalColors('#FFF', '#000'); } CodeMirror.setMode('markdown', function () { });