Skip to content

offline reference is broken, langs not defined and blobs not loading #1040

Open
@takyano

Description

@takyano

Actual Behaviour

Reference examples are not loading in offline reference

Errors in Edge 91.0.864.48 (64-bit) DevTools:

Uncaught ReferenceError: langs is not defined at window.onload init.js:53

Not allowed to load local resource: blob:null/de33675c-0930-4938-8c37-1d3dce8f93fc index.html#/p5.Color/toString:1

Uncaught (in promise) DOMException: The user aborted a request.

Similar errors in Chrome 91.0.4472.101 (64-bit).

Firefox 89.0(64-bit) shows the langs not defined error, but still loads the page

Expected Behaviour

The examples in offline reference pages should load

Steps to reproduce it

download and unzip the offline reference
open index.html
select a reference link

Screenshots of the issue

p5js_offline-reference_loading

p5js_offline-reference_errors

Would you like to work on the issue?

This is multiple issues:

  1. langs is not defined by the time init.js runs
  2. local resources aren't allowed to be loaded in a local webpage

text/plain: Restrictions on File Urls

This should be assigned to someone with a deeper understanding of the rendering process for the offline reference.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions