Skip to content

Commit

Permalink
Merge pull request #132 from eternal-flame-AD/master
Browse files Browse the repository at this point in the history
7.1.1 pre-release
  • Loading branch information
饺子w authored Oct 9, 2018
2 parents 9a79659 + 1662cf7 commit 85a0fcf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ window.getIDfromURL = function () {
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'id';
var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.URL;

url = new URL(url);
url = new URL(url, document.URL);
var query = url.search;
var params = new URLSearchParams(query);
return params.get(key);
Expand Down
2 changes: 1 addition & 1 deletion dist/pxer-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2676,7 +2676,7 @@ var PxerApp = function (_PxerEvent3) {
type: type ? "userprofile_" + type : "userprofile_all"
}));
} else if (this.pageType === "bookmark_works") {
for (var offset = 0; offset < pageNum; offset += 48) {
for (var offset = 0; offset < 48 * pageNum; offset += 48) {
var id = getIDfromURL() || getIDfromURL("id", document.querySelector("a.user-name").getAttribute("href")); // old bookmark page
this.taskList.push(new PxerPageRequest({
type: this.pageType,
Expand Down
2 changes: 1 addition & 1 deletion src/app/class/PxerApp.3.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class PxerApp extends PxerEvent{
type: type?`userprofile_${type}`:"userprofile_all",
}))
} else if (this.pageType==="bookmark_works"){
for (let offset =0;offset<pageNum;offset+=48) {
for (let offset =0;offset<48*pageNum;offset+=48) {
let id = getIDfromURL() || getIDfromURL("id", document.querySelector("a.user-name").getAttribute("href")) // old bookmark page
this.taskList.push(new PxerPageRequest({
type:this.pageType,
Expand Down
2 changes: 1 addition & 1 deletion src/app/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ window.getOnePageWorkCount =function(type) {
};
}
window.getIDfromURL =function(key='id', url=document.URL) {
url = new URL(url);
url = new URL(url, document.URL);
var query = url.search;
var params = new URLSearchParams(query);
return params.get(key);
Expand Down

0 comments on commit 85a0fcf

Please sign in to comment.