/roamImporter

Bookmarklet for creating new roam pages from the broader internet. Supports DOIs.

Primary LanguageHTML

roamImporter

Bookmarklet for creating new roam pages from the broader internet. Supports DOIs.

Getting Started

npm run start will watch for changes and recompile bundle.js

Testing

Install the bookmarklet at install.html.

Stuck version

On May 2nd, 2023 jsdom dropped support for browsers. This introduced a breaking bit of code in jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js

Error: Parsing file roamImporter/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js: Unexpected token (587:26)

The issue is that node is not parsing ||= properly in this line:

this[filesSymbol] ||= FileList.createImpl(this._globalObject);

So I rewrote the function as:

  get files() {
    if (this.type === "file" && value !== null) {
      this[filesSymbol] = value;
    }

    return this[filesSymbol];
  }

jsdom/jsdom#3542