Skip to content

Commit 5602e59

Browse files
committed
fix issue #6 - JS not always running on page load
1 parent b6b744f commit 5602e59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Lib/Webapp.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ class __Webapp_wb_events
141141
;blocked all navigation, we want our own stuff happening
142142
NavigateComplete2(wb, NewURL) {
143143
; wb.Stop() ;not needed in this one.
144-
global __Webapp_NavComplete_call
145-
__Webapp_NavComplete_call.call(NewURL)
146144
}
147145
DownloadComplete(wb, NewURL) {
148146
wb.Stop()
149147
}
150148
DocumentComplete(wb, NewURL) {
149+
global __Webapp_NavComplete_call
150+
__Webapp_NavComplete_call.call(NewURL)
151151
wb.Stop()
152152
}
153153
NavigateError(wb, NewURL) {

0 commit comments

Comments
 (0)