Skip to content

Commit 05dab3d

Browse files
committed
Not using String.startWith anymore
1 parent 4d5eeb7 commit 05dab3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webroot/js/toolbar-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Toolbar.prototype = {
223223
},
224224

225225
onMessage: function(event) {
226-
if (event.data.startsWith('ajax-completed$$')) {
226+
if (event.data.indexOf('ajax-completed$$') === 0) {
227227
this.onRequest(JSON.parse(event.data.split('$$')[1]))
228228
}
229229
},

0 commit comments

Comments
 (0)