From ed2c9d24e8af1e8176d272d44149132ef65f45e4 Mon Sep 17 00:00:00 2001 From: Mario Wolff Date: Fri, 28 Apr 2023 14:53:18 +0200 Subject: [PATCH] use replace instead of replaceAll to support node14 --- .../node_modules/@node-red/editor-client/src/js/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/settings.js b/packages/node_modules/@node-red/editor-client/src/js/settings.js index af7f091c9..85c930bfb 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/settings.js +++ b/packages/node_modules/@node-red/editor-client/src/js/settings.js @@ -100,7 +100,7 @@ RED.settings = (function () { var init = function (options, done) { var accessTokenMatch = /[?&]access_token=(.*?)(?:$|&)/.exec(window.location.search); var path=window.location.pathname.slice(0,-1); - RED.settings.authTokensSuffix=path.replaceAll('/', '-'); + RED.settings.authTokensSuffix=path.replace(/\//g, '-'); if (accessTokenMatch) { var accessToken = accessTokenMatch[1]; RED.settings.set("auth-tokens",{access_token: accessToken});