Commit 39f2d29
committed
fix: pinned md preview bypassed by force=true callers and reload
Block all _loadPreview calls when md viewer is pinned (even force=true)
since previewDetails would be for the current editor file, not the
pinned file. Handle reload button separately: use resendContent() to
re-send the pinned document without clearing cache (reloadCurrentFile
clears the cache expecting a re-send that never comes when pinned).
Guard _openLivePreviewURL and _activeDocChanged to prevent LP iframe
from replacing the pinned md viewer.1 parent 8244ac5 commit 39f2d29
2 files changed
Lines changed: 25 additions & 2 deletions
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1026 | 1034 | | |
1027 | 1035 | | |
1028 | 1036 | | |
| |||
1073 | 1081 | | |
1074 | 1082 | | |
1075 | 1083 | | |
| 1084 | + | |
1076 | 1085 | | |
1077 | 1086 | | |
1078 | 1087 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
850 | 856 | | |
851 | 857 | | |
852 | 858 | | |
| |||
876 | 882 | | |
877 | 883 | | |
878 | 884 | | |
879 | | - | |
880 | | - | |
| 885 | + | |
881 | 886 | | |
882 | 887 | | |
883 | 888 | | |
| |||
930 | 935 | | |
931 | 936 | | |
932 | 937 | | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
933 | 944 | | |
934 | 945 | | |
935 | 946 | | |
| |||
1205 | 1216 | | |
1206 | 1217 | | |
1207 | 1218 | | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
1208 | 1222 | | |
1209 | 1223 | | |
1210 | 1224 | | |
| |||
0 commit comments