fix(frontend): Populate download URL, accidentally removed
This commit is contained in:
@@ -17,6 +17,13 @@
|
|||||||
!story_id ||
|
!story_id ||
|
||||||
(is_paid_story && !(credentials.username && credentials.password));
|
(is_paid_story && !(credentials.username && credentials.password));
|
||||||
|
|
||||||
|
$: url =
|
||||||
|
`/download/${story_id}?om=1` +
|
||||||
|
(download_images ? "&download_images=true" : "") +
|
||||||
|
(is_paid_story
|
||||||
|
? `&username=${encodeURIComponent(credentials.username)}&password=${encodeURIComponent(credentials.password)}`
|
||||||
|
: "");
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
is_part_id = false;
|
is_part_id = false;
|
||||||
if (raw_story_id.includes("wattpad.com")) {
|
if (raw_story_id.includes("wattpad.com")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user