2023-12-20 07:08:10 +00:00
|
|
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
2024-02-03 14:59:22 +00:00
|
|
|
/// SPDX-FileCopyrightText: Copyright © 2023-2024 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
2023-12-20 07:08:10 +00:00
|
|
|
|
|
|
|
const SyndicateBrowserStdenv = {
|
|
|
|
autoboot: true,
|
2023-12-20 23:03:49 +00:00
|
|
|
autoboot_options: {
|
|
|
|
SyndicateWsRelay: {
|
|
|
|
debug: false,
|
|
|
|
},
|
|
|
|
},
|
2023-12-20 07:08:10 +00:00
|
|
|
boot() {
|
|
|
|
SyndicateHtml2.boot();
|
2023-12-20 23:03:49 +00:00
|
|
|
SyndicateWsRelay.boot(void 0, this.autoboot_options.SyndicateWsRelay.debug);
|
2023-12-20 07:08:10 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
2023-12-20 23:03:49 +00:00
|
|
|
if (SyndicateBrowserStdenv.autoboot) {
|
2023-12-20 07:08:10 +00:00
|
|
|
SyndicateBrowserStdenv.boot();
|
|
|
|
}
|
|
|
|
});
|