From df9e04f3ec6433c3663ebf8869e0be6cfedde0e5 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 12 Jul 2015 14:12:31 -0700 Subject: [PATCH] Remove offline detection. --- src/General/Config.coffee | 4 ---- src/Monitoring/ThreadUpdater.coffee | 19 ------------------- 2 files changed, 23 deletions(-) diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 046ddc4d3..0859f5576 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -961,10 +961,6 @@ Config = true 'Automatically fetch new posts.' ] - 'Ignore Offline Status': [ - true - 'Update even if your browser reports you are offline.' - ] 'Optional Increase': [ false 'Increase the intervals between updates on threads without new posts.' diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 5466dd227..ea9a91533 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -76,7 +76,6 @@ ThreadUpdater = ThreadUpdater.cb.interval.call $.el 'input', value: Conf['Interval'] - $.on window, 'online offline', ThreadUpdater.cb.online $.on d, 'QRPostSuccessful', ThreadUpdater.cb.checkpost $.on d, 'visibilitychange', ThreadUpdater.cb.visibility @@ -89,18 +88,6 @@ ThreadUpdater = beep: 'data:audio/wav;base64,<%= grunt.file.read("src/General/audio/beep.wav", {encoding: "base64"}) %>' cb: - online: -> - return if ThreadUpdater.thread.isDead - - if navigator.onLine - ThreadUpdater.set 'status', '' - else - ThreadUpdater.set 'status', 'Offline', 'warning' - - if Conf['Auto Update'] and not Conf['Ignore Offline Status'] - ThreadUpdater.outdateCount = 0 - ThreadUpdater.setInterval() - checkpost: (e) -> return if e.detail.threadID isnt ThreadUpdater.thread.ID ThreadUpdater.postID = e.detail.postID @@ -189,12 +176,6 @@ ThreadUpdater = ThreadUpdater.set 'timer', 'Update' return - unless navigator.onLine - ThreadUpdater.set 'status', 'Offline', 'warning' - unless Conf['Ignore Offline Status'] - ThreadUpdater.set 'timer', '' - return - {interval} = ThreadUpdater if Conf['Optional Increase'] # Lower the max refresh rate limit on visible tabs.