From 7c6af18b393445896380da7721e2a963a0debaf1 Mon Sep 17 00:00:00 2001 From: Tobias Speicher Date: Sat, 26 Mar 2022 00:59:16 +0100 Subject: [PATCH] chore: replace deprecated String.prototype.substr() .substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher --- demo/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/index.js b/demo/index.js index 8b12f60..95ff442 100644 --- a/demo/index.js +++ b/demo/index.js @@ -3,7 +3,7 @@ $(document).ready(function () { var videoElement = $('#remoteVideo')[0]; if (window.location.hash) { - $('#softphoneMediaInfo').val(decodeURIComponent(window.location.hash.substr(1))); + $('#softphoneMediaInfo').val(decodeURIComponent(window.location.hash.slice(1))); } $('#makeCall').click(function () {