ccmjs/ccm

TypeError in Firefox when loading CCM

Closed this issue · 2 comments

  • The same loading procedure works fine in Vivaldi (Chromium based)
  • Firefox version: 64.0.2

screenshot

Edit: I have seen this deprecation message for a while in Vivaldi, maybe it's relevant?

screenshot

In which situation does the error occur exactly? When loading a HTML file via ccm.load? If that's the case, it's because HTML Import in Firefox does not work. The HTML import is already obsolete anyway and will soon no longer be supported by ccm.

An HTML file can also be loaded via ccm.load like this:
[ 'ccm.load', { url: 'path/to/my.html', type: 'data' } ]
The result is then the contents of the HTML file as a string.

Ok, then I guess I should avoid loading HTML file like this from now on. Closing issue.