From ff872c4a89ca973cd9c7c83dc57c345cc3ee07e0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Oct 2018 14:24:36 +0300 Subject: reader: if 401 is received on last page operations, redirect to index/login --- read.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'read.html') diff --git a/read.html b/read.html index 0a0f02e..c116c2a 100644 --- a/read.html +++ b/read.html @@ -313,6 +313,11 @@ if (data.cfi) { _last_position_sync = new Date().getTime()/1000; } + }) + .fail(function(e) { + if (e && e.status == 401) { + window.location = "index.php"; + } }); }); @@ -830,6 +835,11 @@ _last_position_sync = new Date().getTime()/1000; } + }) + .fail(function(e) { + if (e && e.status == 401) { + window.location = "index.php"; + } }); _store_position = 0; -- cgit v1.2.3