You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
avoid-accidental-submissions throws on pre-fork edit pages #4194
Refined GitHub → hide-markdown-diff → TypeError: undefined has no properties
init hide-markdown-diff.tsx:24
runFeature index.tsx:125
setupPageLoad index.tsx:147
add index.tsx:248
$e pjax.ts:98
Ne pjax.ts:311
execute navigation.ts:62
execute navigation.ts:17
Y index.js:96
Console error only, not a real issue. I'm not sure if we should start fixing these issues in more direct ways instead of through exclude, which might not work with elementReady features.
For example in this case, if the first expected item isn't found, let the error throw only if it's not isEmptyPage. I wonder if this mechanism should be implemented via some sort of "deferred exclude" list of checks, or if exclude should just be treated this way (likely troublesome)
But that is in general, by having a detection if a specific selector exists. I think such a thing will be very hard if we are supporting GHE. Since the DOM will change and the warning will be moot for some users.
changed the title [-]`hide-markdown-diff`: throws on pre-fork edit pages[/-][+]`avoid-accidental-submissions` throws on pre-fork edit pages[/+]on Nov 15, 2021
Activity
yakov116 commentedon Apr 5, 2021
In the past we did a check on these pages to make sure the selector exists
fregante commentedon Apr 5, 2021
We have that in many other pages but then we make all errors silent, we need a better way to handle that
yakov116 commentedon Apr 5, 2021
But that is in general, by having a detection if a specific selector exists. I think such a thing will be very hard if we are supporting GHE. Since the DOM will change and the warning will be moot for some users.
[-]`hide-markdown-diff`: throws on pre-fork edit pages[/-][+]`avoid-accidental-submissions` throws on pre-fork edit pages[/+]cheap-glitch commentedon Nov 15, 2021
Renamed because we dropped
hide-markdown-diff.That said, the discussion is still valid, as exemplified by this error when visiting the URL in the first post:
The faulty line:
refined-github/source/features/avoid-accidental-submissions.tsx
Line 10 in 4f270c4