fix: 🐛 replace deprecated substr with substring (#1820)

This commit is contained in:
Dharini Jeeva authored and GitHub committed 2023-08-03 15:05:52 -07:00
1 parent 35d69f23d7
commit ed51b6b3a9
1 file changed
+1 -1
+1 -1
View File
@@ -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}`);