Skip to content

Commit 79c9636

Browse files
committed
Update links.js
1 parent 40c1071 commit 79c9636

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

links.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,26 @@
99
function createLink(linkData) {
1010

1111
// save link
12-
const base = window.location.origin + '/full';
12+
let base = 'https://cde.run';
13+
if (isDev) base = 'https://dev.cde.run';
14+
1315
let link = '';
1416

1517
if (linkData.dir) {
1618

17-
link += '?dir=' +
19+
link += '/' +
1820
encodeURI(
19-
linkData.dir.join(',')
21+
linkData.dir.join('/')
2022
);
2123

2224

2325
if (linkData.file) {
2426

25-
link += '&file=' +
27+
link += '/' +
2628
encodeURI(
2729
linkData.file.name
2830
);
2931

30-
31-
if (linkData.openLive) {
32-
33-
link += '&openLive=true';
34-
35-
}
36-
3732
}
3833

3934
}

0 commit comments

Comments
 (0)