fix: 🐛 replace deprecated substr with substring (#1820)
This commit is contained in:
1 parent
35d69f23d7
commit
ed51b6b3a9
1 file changed
+1
-1
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user