Skip to content

Commit 0d42330

Browse files
committed
Add vanila-lazyload and bugfix native requests timeouts
1 parent 35f73e1 commit 0d42330

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

js/lib/lazyload.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ async function initNativePort(eventCallback) {
3535
eventCallback(resp.resp);
3636
} else {
3737
const handler = waitingNativeReqs[resp.id];
38-
handler(resp.resp);
38+
if(handler != null)
39+
handler(resp.resp);
3940
}
4041
});
4142
function onNativeDisconnect(p) {

0 commit comments

Comments
 (0)