skip doc links processing if there are none

This commit is contained in:
Frédéric Péters 2015-04-23 10:36:40 +02:00
parent 89c9827a13
commit bb26663683
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@
$.pfwbged.doLinearNavigation = function () {
var doc_links = JSON.parse(localStorage.getItem('table-documents'));
var table_url = window.localStorage.getItem('table-documents-url');
if (doc_links == null) return;
if (typeof(doc_links) != 'object') return;
var idx = doc_links.indexOf(window.location.href);
if (idx == -1) return;