2020-04-04 01:47:18 +02:00
|
|
|
/* global __webpack_public_path__:writable */
|
|
|
|
|
2020-01-15 16:41:56 +01:00
|
|
|
const t1 = performance.now();
|
2019-09-19 02:47:12 +02:00
|
|
|
window.page_params = $("#page-params").remove().data("params");
|
2020-01-15 16:41:56 +01:00
|
|
|
const t2 = performance.now();
|
|
|
|
window.page_params_parse_time = t2 - t1;
|
2019-09-20 06:58:12 +02:00
|
|
|
if (!window.page_params) {
|
|
|
|
throw new Error("Missing page-params");
|
|
|
|
}
|
2020-04-04 01:47:18 +02:00
|
|
|
|
|
|
|
// Webpack exposes this global for dynamic configuration of publicPath.
|
|
|
|
// https://webpack.js.org/guides/public-path/#on-the-fly
|
|
|
|
__webpack_public_path__ = window.page_params.webpack_public_path;
|