From ed51b6b3a95ac74a1fc146edf7522432cde85239 Mon Sep 17 00:00:00 2001 From: Dharini Jeeva Date: Thu, 3 Aug 2023 15:05:52 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20replace=20deprecated=20su?= =?UTF-8?q?bstr=20with=20substring=20(#1820)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/desktop/electron-app/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/desktop/electron-app/src/index.js b/ui/desktop/electron-app/src/index.js index 7c36e6b60..44e1c78e3 100644 --- a/ui/desktop/electron-app/src/index.js +++ b/ui/desktop/electron-app/src/index.js @@ -168,7 +168,7 @@ app.on('ready', async () => { ses.protocol.handle(emberAppProtocol, (request) => { /* eng-disable PROTOCOL_HANDLER_JS_CHECK */ const isDir = request.url.endsWith('/'); - const absolutePath = request.url.substr(emberAppURL.length); + const absolutePath = request.url.substring(emberAppURL.length); const normalizedPath = isDir ? path.normalize(`${emberAppDir}/index.html`) : path.normalize(`${emberAppDir}${absolutePath}`);