wincohi / bookmark-notes

a firefox webextension to bring back pre-62 bookmark annotations
Mozilla Public License 2.0
23 stars 4 forks source link

Don't listen to onCreated while user is importing bookmarks #20

Open wincohi opened 6 years ago

wincohi commented 6 years ago

The extension currently doesn't distinguish between bookmarks.onCreated as a standalone event, and bookmarks.onCreated as a result of the user importing bookmarks from a previous backup or export. Since the WebExtensions API allows for this distinction, we should take advantage of it and avoid handling the event until the import is over.