Skip to content

Commit

Permalink
BugFix -> Allowed page-redirection option on UpdateNovel -> PageTypeS…
Browse files Browse the repository at this point in the history
…cript
  • Loading branch information
gmastergreatee committed Sep 6, 2022
1 parent bdcd440 commit 93a8fb0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1703,6 +1703,27 @@ app = new Vue({
this.getEvaluateJavascriptCode(t_rule.pagetype_code)
);
if (data || data == 0) {
// check for extras
if (data.extras) {
extras = data.extras;
}
// check for chapter custom redirection
// dataFormat -> { retry: 1, nextURL: '' }
if (data.retry && data.nextURL) {
log("Chapter redirection detected, working...");
let t_url = data.nextURL;
if (t_url != this.iframe_url) {
this.iframe_url = t_url;
} else {
try {
this.mainWebView.loadURL(t_url);
} catch {
this.mainWebView.reload();
}
}
return;
}

switch (data) {
case 0:
this.mainWebView.stop();
Expand Down

0 comments on commit 93a8fb0

Please sign in to comment.