chore: format
This commit is contained in:
@@ -1,26 +1,31 @@
|
||||
import { fromEvent } from 'rxjs';
|
||||
import { webComponentsReady, stylesheetReady } from './common.js';
|
||||
import { fromEvent } from "rxjs";
|
||||
import { webComponentsReady, stylesheetReady } from "./common.js";
|
||||
|
||||
(async () => {
|
||||
await Promise.all([
|
||||
...('customElements' in window
|
||||
? []
|
||||
: [
|
||||
import(/* webpackChunkName: "webcomponents" */ './polyfills/webcomponents.js').then(() =>
|
||||
import(/* webpackChunkName: "shadydom" */ './polyfills/shadydom.js'),
|
||||
),
|
||||
]),
|
||||
]);
|
||||
await Promise.all([
|
||||
...("customElements" in window
|
||||
? []
|
||||
: [
|
||||
import(
|
||||
/* webpackChunkName: "webcomponents" */ "./polyfills/webcomponents.js"
|
||||
).then(
|
||||
() =>
|
||||
import(
|
||||
/* webpackChunkName: "shadydom" */ "./polyfills/shadydom.js"
|
||||
),
|
||||
),
|
||||
]),
|
||||
]);
|
||||
|
||||
await webComponentsReady;
|
||||
await stylesheetReady;
|
||||
await webComponentsReady;
|
||||
await stylesheetReady;
|
||||
|
||||
await import(/* webpackMode: "eager" */ 'fslightbox');
|
||||
await import(/* webpackMode: "eager" */ "fslightbox");
|
||||
|
||||
const pushStateEl = document.querySelector('hy-push-state');
|
||||
const after$ = fromEvent(pushStateEl, 'hy-push-state-after');
|
||||
const pushStateEl = document.querySelector("hy-push-state");
|
||||
const after$ = fromEvent(pushStateEl, "hy-push-state-after");
|
||||
|
||||
after$.subscribe(() => {
|
||||
refreshFsLightbox();
|
||||
});
|
||||
after$.subscribe(() => {
|
||||
refreshFsLightbox();
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user