Repeated code between server previewGeneration.js
and client EmbedFrame.jsx
#2805
Labels
previewGeneration.js
and client EmbedFrame.jsx
#2805
Increasing Access
Our codebase becomes more maintainable if functions are defined in one place only.
Feature enhancement details
I noticed that there is a function
resolvePathsForElementsWithAttribute
which is identical in both files. Other parts of the code are similar but different.Tasks:
test()
to check for truthiness rather thanmatch() !== null
.Questions:
/embed/
endpoints, but those are disabled right now due to phishing concerns. I'm not sure what it would take for us to re-enable it. It might make sense to delete it. See Bug/phishing #1967, Restore Present view that doesn't allow phishing #1971, etc. for background.The text was updated successfully, but these errors were encountered: