Skip to content

Commit 8da1056

Browse files
authored
Merge pull request #10 from CalcMark/feat/auto-rebuild-on-upstream-release
fix: Share button disabled for large documents
2 parents edd8c69 + 7af539f commit 8da1056

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

static/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,6 @@
918918
var res = await fetch(EXAMPLES_BASE + name + '.cm');
919919
if (!res.ok) throw new Error();
920920
input.value = await res.text();
921-
shareBtn.disabled = false;
922921
lastRenderedSource = '';
923922
lastRawSource = '';
924923
renderCurrent();
@@ -950,7 +949,6 @@
950949
await loadFromHash();
951950
}
952951
if (input.value.trim()) {
953-
shareBtn.disabled = false;
954952
if (location.hash && location.hash.startsWith('#0:')) {
955953
cmBtn.style.display = '';
956954
}

0 commit comments

Comments
 (0)