File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 22
22
area . style . display = 'none' ;
23
23
area . innerHTML = '' ;
24
24
a . innerHTML = '' ;
25
-
26
- var link = 'https://www.draw.io' ;
27
-
25
+
28
26
if ( url . substring ( 0 , 32 ) == 'https://drive.google.com/file/d/' )
29
27
{
30
28
var id = url . substring ( 32 , url . lastIndexOf ( '/' ) ) ;
33
31
34
32
if ( document . getElementById ( 'iframe' ) . checked )
35
33
{
34
+ var link = 'https://viewer.diagrams.net' ;
36
35
area . style . display = '' ;
37
36
area . appendChild ( document . createTextNode (
38
37
'<iframe frameborder="0" style="width:100%;height:' +
39
38
document . getElementById ( 'height' ) . value + ';" src="' +
40
- link + '?lightbox=1 #U' + encodeURIComponent ( url ) + '"></iframe>' ) ) ;
39
+ link + '?#U' + encodeURIComponent ( url ) + '"></iframe>' ) ) ;
41
40
area . focus ( ) ;
42
41
document . execCommand ( 'selectAll' ) ;
43
42
}
44
43
else
45
44
{
45
+ var link = 'https://app.diagrams.net' ;
46
+
46
47
if ( document . getElementById ( 'lightbox' ) . checked )
47
48
{
48
49
link += '?lightbox=1&edit=_blank' ;
You can’t perform that action at this time.
0 commit comments