File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -92,17 +92,17 @@ const html = `
9292
9393 const isDev = (window.location.hostname === 'dev.codeit.codes');
9494
95- if (link && !link.startsWith('https://cde.run')
96- && !link.startsWith('https://dev.cde.run')) {
95+ if (link && link.startsWith('https:/github.com')) {
9796
98- if (!isDev) link = 'https://cde.run/' + link;
99- else link = 'https://dev.cde.run/' + link;
97+ link = link.replace('https:/github.com', 'https://github.com');
10098
10199 }
102100
103- if (link && link.includes('https:/github.com')) {
101+ if (link && !link.startsWith('https://cde.run')
102+ && !link.startsWith('https://dev.cde.run')) {
104103
105- link = link.replace('https:/github.com', 'https://github.com');
104+ if (!isDev) link = 'https://cde.run/' + link;
105+ else link = 'https://dev.cde.run/' + link;
106106
107107 }
108108
You can’t perform that action at this time.
0 commit comments