From 341a2e8b78af181687468cfcf1a480600be9f32e Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Sun, 9 May 2021 18:39:02 -0700 Subject: [PATCH] debugging on mobile --- js/creator-17.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/creator-17.js b/js/creator-17.js index 2234e638..26bbb19f 100644 --- a/js/creator-17.js +++ b/js/creator-17.js @@ -1,5 +1,7 @@ //URL Params var params = new URLSearchParams(window.location.search); +const debugging = params.get('debug') != ''; +console.log('debugging: ' + debugging); //To save the server from being overloaded? Maybe? function fixUri(input) { var prefix = 'https://card-conjurer.storage.googleapis.com';//'https://raw.githubusercontent.com/ImKyle4815/cardconjurer/remake'; @@ -1291,6 +1293,9 @@ async function downloadCard() { imageName = card.text.nickname.text + ' (' + imageName + ')' } download.download = imageName + '.png'; + if (debugging) { + alert(download.download, '\n', imageName + '.png'); + } download.href = cardCanvas.toDataURL(); document.body.appendChild(download); await download.click();