Skip to content

Commit 9f5ce31

Browse files
dzibmaMartin Dzibela
andauthored
Prevent white flash on full page reload (#151)
Co-authored-by: Martin Dzibela <[email protected]>
1 parent 3bc2b38 commit 9f5ce31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ async function send(control, action = '', method = 'GET', body = null, enctype =
408408

409409
if (target === document.documentElement) {
410410
window.location.href = response.url
411+
return
411412
}
412413

413414
let content = response.html.getElementById(target._ajax_id)

0 commit comments

Comments
 (0)