From 751bf947583a0cd50cf7044d0c53f846f272020f Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 13 Apr 2019 19:45:50 +0200 Subject: [PATCH] don't change sourceId for script execution which forces full tree reloads because it is annoying --- src/services/script.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/services/script.js b/src/services/script.js index f3e10166e..91872b00a 100644 --- a/src/services/script.js +++ b/src/services/script.js @@ -71,9 +71,6 @@ async function executeScript(script, params, startNoteId, currentNoteId, originE } async function execute(ctx, script) { - // scripts run as "server" sourceId so clients recognize the changes as "foreign" and update themselves - cls.namespace.set('sourceId', sourceIdService.getCurrentSourceId()); - return await (function() { return eval(`const apiContext = this;\r\n(${script}\r\n)()`); }.call(ctx)); }