From 0b67863b84599c32b479cfdce66d63a49efa5d21 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 23 Jan 2016 12:09:27 -0800 Subject: [PATCH] Show warning when page didn't load completely. --- src/General/Main.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 0b64c3007..832f71071 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -219,6 +219,12 @@ Main = initThread: -> if board = $ '.board' + unless $ '.board + *' + msg = $.el 'div', + <%= html('The page didn't load completely.
Some features may not work unless you reload.') %> + $.on $('a', msg), 'click', -> location.reload() + new Notice 'warning', msg + threads = [] posts = []