diff options
author | CommanderRoot <CommanderRoot@users.noreply.github.com> | 2022-05-03 15:52:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 15:52:45 +0300 |
commit | 56640ae815fbace78c62482711cb1733d26cee5e (patch) | |
tree | 18078e6b9ec3e8ffe7cc6ac28e4c8f0a309bce94 /plugins/Referrers/vue/src | |
parent | 34ea7bbfcbc5a79a5c7b675b8cd2134cdda74cbe (diff) |
Replace deprecated String.prototype.substr() (#19111)
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Diffstat (limited to 'plugins/Referrers/vue/src')
-rw-r--r-- | plugins/Referrers/vue/src/CampaignBuilder/CampaignBuilder.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Referrers/vue/src/CampaignBuilder/CampaignBuilder.vue b/plugins/Referrers/vue/src/CampaignBuilder/CampaignBuilder.vue index 21dabe9ca8..1e579ec1cc 100644 --- a/plugins/Referrers/vue/src/CampaignBuilder/CampaignBuilder.vue +++ b/plugins/Referrers/vue/src/CampaignBuilder/CampaignBuilder.vue @@ -213,8 +213,8 @@ export default defineComponent({ let urlHash = ''; if (urlHashPos >= 0) { - urlHash = generatedUrl.substr(urlHashPos); - generatedUrl = generatedUrl.substr(0, urlHashPos); + urlHash = generatedUrl.slice(urlHashPos); + generatedUrl = generatedUrl.slice(0, urlHashPos); } if (generatedUrl.indexOf('/', 10) < 0 && generatedUrl.indexOf('?') < 0) { |