From 82c5a853cba64ca38f9a199632af9d594c4227f5 Mon Sep 17 00:00:00 2001 From: cutls Date: Wed, 9 Sep 2020 20:54:07 +0900 Subject: [PATCH] fix --- app/js/userdata/his-data.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/js/userdata/his-data.js b/app/js/userdata/his-data.js index 952dd6e7..9e7598c7 100644 --- a/app/js/userdata/his-data.js +++ b/app/js/userdata/his-data.js @@ -204,7 +204,7 @@ function flw(user, more, acct_id) { let link if (linkHeader) { console.log(linkHeader) - link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] + try {link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] }catch{} console.log(link) } $("#his-follow-list-contents").attr('max-id', link) @@ -313,7 +313,7 @@ function fer(user, more, acct_id) { let link if (linkHeader) { console.log(linkHeader) - link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] + try {link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] }catch{} console.log(link) } $("#his-follower-list-contents").attr('max-id', link) @@ -354,7 +354,7 @@ function fer(user, more, acct_id) { let link if (linkHeader) { console.log(linkHeader) - link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] + try {link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] }catch{} console.log(link) } $("#his-follower-list-contents").attr('max-id', link) @@ -403,7 +403,7 @@ function showFav(more, acct_id) { let link if (linkHeader) { console.log(linkHeader) - link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] + try {link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] }catch{} console.log(link) } var template = parse(json, "", acct_id, "user")