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';