Fixed a bug where if the window initially launches with a markdown file open and the tab is switched to a non-markdown file a new browser tab would still open
Wrapped all open/closing logic in an extensionControl function and make all events call this to wrap the opening and closing logic so that every event checks if a markdown file is open.
This was introduced when I added the scrolling feature in #51.
Fixed a bug where if the window initially launches with a markdown file open and the tab is switched to a non-markdown file a new browser tab would still open
Wrapped all open/closing logic in an
extensionControl
function and make all events call this to wrap the opening and closing logic so that every event checks if a markdown file is open.This was introduced when I added the scrolling feature in #51.
Closes #56.