Commit 7af539f
fix: Share button was never disabled for large documents
Two places unconditionally set shareBtn.disabled = false (loadExample
and init block), overriding checkShareability(). Now the button starts
disabled and is only enabled by checkShareability() after a successful
render proves the URL fits within 2000 chars.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c1a5c9e commit 7af539f
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
922 | 921 | | |
923 | 922 | | |
924 | 923 | | |
| |||
950 | 949 | | |
951 | 950 | | |
952 | 951 | | |
953 | | - | |
954 | 952 | | |
955 | 953 | | |
956 | 954 | | |
| |||
0 commit comments