Skip to content

Commit 1078f2d

Browse files
committed
Don't re-define pingMessage
1 parent 26ba090 commit 1078f2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/res/raw/webviewcompat_test_script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
let supportedMessages = ["ContextMenuOpened", "PageStarted"];
1+
const supportedMessages = ["ContextMenuOpened", "PageStarted"];
22

33
const delay = $DELAY$;
44
const postInitialPing = $POST_INITIAL_PING$;
55
const replyToNativeMessages = $REPLY_TO_NATIVE_MESSAGES$;
66

7-
const pingMessage = 'Ping:' + window.location.href + ' ' + delay + 'ms'
7+
const webViewCompatPingMessage = 'Ping:' + window.location.href + ' ' + delay + 'ms'
88

99

1010
if (postInitialPing) {
1111
setTimeout(() => {
12-
webViewCompatTestObj.postMessage(pingMessage)
12+
webViewCompatTestObj.postMessage(webViewCompatPingMessage)
1313
}, delay)
1414
}
1515

0 commit comments

Comments
 (0)