fixed next still showing

This commit is contained in:
Sriram Hariharan
2019-01-10 20:57:57 -06:00
parent bd760415f8
commit 5c8b533e3a

View File

@@ -33,6 +33,11 @@ const butdelay = 75;
//Matthew Tran's twitter and insta: @MATTHEWTRANN and @matthew.trann
$(function () {
next = $("#next_nav_link");
chrome.storage.sync.get('loadAll', function (data) {
if (data.loadAll) {
$('[title*="next listing"]').remove();
}
});
loadDataBase();
//make heading and modal
if (!$("#kw_results_table").length) {
@@ -156,7 +161,6 @@ $(function () {
function loadNextPages() {
chrome.storage.sync.get('loadAll', function (data) {
if (data.loadAll) {
$('[title*="next listing"]').remove();
let link = next.prop('href');
if (done && next && link) {
$("#nextlabel").css('display', 'inline-block');