From ce4a2bb08c7546c8f1fab6d4c8e49f0dd0b892da Mon Sep 17 00:00:00 2001 From: Jeff Leverenz Date: Fri, 5 Aug 2022 16:18:57 -0500 Subject: [PATCH] Update hosts for viewer tool --- tools/viewer.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/viewer.html b/tools/viewer.html index 60fa815..63a7b8d 100755 --- a/tools/viewer.html +++ b/tools/viewer.html @@ -22,9 +22,7 @@ area.style.display = 'none'; area.innerHTML = ''; a.innerHTML = ''; - - var link = 'https://www.draw.io'; - + if (url.substring(0, 32) == 'https://drive.google.com/file/d/') { var id = url.substring(32, url.lastIndexOf('/')); @@ -33,16 +31,19 @@ if (document.getElementById('iframe').checked) { + var link = 'https://viewer.diagrams.net'; area.style.display = ''; area.appendChild(document.createTextNode( '')); + link + '?#U' + encodeURIComponent(url) + '">')); area.focus(); document.execCommand('selectAll'); } else { + var link = 'https://app.diagrams.net'; + if (document.getElementById('lightbox').checked) { link += '?lightbox=1&edit=_blank';