Skip to content

Commit

Permalink
Use .substring instead of deprecated .substr
Browse files Browse the repository at this point in the history
  • Loading branch information
oamaok committed Dec 10, 2023
1 parent ea0effd commit f9c84db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kaiku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ const updateHtmlElementInstance = (
const isListener = key[0] === 'o' && key[1] === 'n'

if (isListener) {
const eventName = key.substr(2).toLowerCase()
const eventName = key.substring(2).toLowerCase()

if (key in instance.props_) {
instance.element_.removeEventListener(
Expand Down

0 comments on commit f9c84db

Please sign in to comment.