asciidoctor/asciidoctor-browser-extension

Chromium: Extension context reload error

Neved4 opened this issue · 1 comments

Affects Asciidoctor.js Live Preview 2.6.0.1 for both local and remote files in Chromium-based web browsers.

Description

Reloading the document will trigger this error. It does not prevent proper display of the document.

Steps to reproduce

  1. Reload the extension with a remote or local AsciiDoc(tor) file:
= Document Title

Document Body

Error Details

Uncaught (in promise) Error: Extension context invalidated.

Context

https://raw.githubusercontent.com/asciidoctor/asciidoctor.org/master/docs/asciidoc-vs-markdown.adoc

Stack Trace

js/loader.js:143 (anonymous function)

143.	webExtension.runtime.sendMessage({ action: 'fetch-convert' }, function (response) {  

Relevant lines

webExtension.runtime.sendMessage({ action: 'fetch-convert' }, function (response) {

Attachments

Screenshot


Thanks for the fix! ⚡️🖤