Replaced deprecated substr method

This commit is contained in:
Vitor Rodrigues 2023-01-17 16:42:49 +01:00 committed by GitHub
parent b7ef484fbf
commit b0c8a2b38c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ const UI = {
UI.initSetting('shared', true);
UI.initSetting('view_only', false);
UI.initSetting('show_dot', false);
UI.initSetting('path', window.location.pathname.substr(1) + '/../websockify');
UI.initSetting('path', window.location.pathname.substring(1) + '/../websockify');
UI.initSetting('repeaterID', '');
UI.initSetting('reconnect', false);
UI.initSetting('reconnect_delay', 5000);