Skip to content

Commit

Permalink
fix(webapp): migrate deprecated substr()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Jun 22, 2023
1 parent 5b2121f commit f7a10f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www/webapp/src/components/Field/RecordItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default {
event.preventDefault();
const pos = this.getPosition();
this.update(this.value.substr(0, pos - 1) + this.value.substr(pos), pos - 1);
this.update(this.value.slice(0, pos - 1) + this.value.slice(pos), pos - 1);
},
deleteHandler(index, event) {
if (!this.positionBeforeDelimiter(index)) {
Expand All @@ -237,7 +237,7 @@ export default {
event.preventDefault();
const pos = this.getPosition();
this.update(this.value.substr(0, pos) + this.value.substr(pos + 1), pos);
this.update(this.value.slice(0, pos) + this.value.slice(pos + 1), pos);
},
leftHandler(index, event) {
if (!this.positionAfterDelimiter(index)) {
Expand Down
2 changes: 1 addition & 1 deletion www/webapp/src/views/DynSetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
if ('domain' in this.$route.params && this.$route.params.domain !== undefined) {
this.domain = this.$route.params.domain;
}
this.token = this.$route.hash.substr(1);
this.token = this.$route.hash.slice(1);
this.check();
},
computed: {
Expand Down

0 comments on commit f7a10f8

Please sign in to comment.