Chris Johns 2591ca6390 html: Embed the catalogue XML in JS.
The is to work around a security issue with Chrome on Windows. This
patches let the cover page load on Chrome and Edge on Windows 10.
2017-01-11 17:04:02 +11:00

14 lines
376 B
JavaScript

/*!
* Copyright 2017 Chris Johns <chrisj@rtems.org>
*/
/*
* Embed the XML catalogue in this JS code to get around the Chrome on Windows
* security "feature" where loading of a local disk file under the same path as
* the HTML Chrome just loaded from disk is not allowed.
*/
function coverPageCatalogue() {
xml = '@CATALOGUE';
paintCatalogue($.parseXML(xml));
}