blenderskool/untab

Iframe append error in tabs with file URLs

blenderskool opened this issue · 1 comments

Content script appends the UnTab iframe to the body of the page. For file URLs, the DOM is not present which causes the following error.

Adding more context, I encountered this error when I opened an SVG directly in the browser. This error was actually harmless as the search interface simply opened in a new tab when triggered from this tab.

We can simply prevent embedding iframe when the body element is not available in the current tab to fix this.