remove log
This commit is contained in:
parent
e4f3a7cdf7
commit
a582479da4
|
@ -13,7 +13,7 @@ var baseurl = "https://nouveau.europresse.com/WebPages/Pdf/Document.aspx?DocName
|
||||||
function getpage(page)
|
function getpage(page)
|
||||||
{
|
{
|
||||||
fetch(baseurl + page)
|
fetch(baseurl + page)
|
||||||
.then(response =>response.blob())
|
.then(response => response.blob())
|
||||||
.then(blob =>
|
.then(blob =>
|
||||||
{
|
{
|
||||||
if (blob.size)
|
if (blob.size)
|
||||||
|
@ -22,7 +22,6 @@ function getpage(page)
|
||||||
if (page < 10) pagename = "00" + pagename;
|
if (page < 10) pagename = "00" + pagename;
|
||||||
else if (page < 100) pagename = "0" + pagename;
|
else if (page < 100) pagename = "0" + pagename;
|
||||||
|
|
||||||
console.log("Downloading page " + pagename);
|
|
||||||
var filename = basename + "-" + pagename + ".pdf";
|
var filename = basename + "-" + pagename + ".pdf";
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = window.URL.createObjectURL(blob);
|
a.href = window.URL.createObjectURL(blob);
|
||||||
|
|
Loading…
Reference in New Issue