Show warning when page didn't load completely.
This commit is contained in:
parent
526be3737e
commit
0b67863b84
@ -219,6 +219,12 @@ Main =
|
||||
|
||||
initThread: ->
|
||||
if board = $ '.board'
|
||||
unless $ '.board + *'
|
||||
msg = $.el 'div',
|
||||
<%= html('The page didn't load completely.<br>Some features may not work unless you <a href="javascript:;">reload</a>.') %>
|
||||
$.on $('a', msg), 'click', -> location.reload()
|
||||
new Notice 'warning', msg
|
||||
|
||||
threads = []
|
||||
posts = []
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user