generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
When importing a quip document with a mailto link, the import fails on this line:
Line 33 in fb38812
| const secret_path = href.split('.com/', 2).at(1).split('/').at(0); |
The trace is:
plugin:quip:1316 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
at Importer.process_A (plugin:quip:1316:55)
at Importer.importHTML (plugin:quip:1345:18)
process_A @ plugin:quip:1316
importHTML @ plugin:quip:1345
Essentially the if statement is not correctly guarding against mailto links because the hostname of the URI is an empty string.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels