@etspress/netflix 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etspress/netflix",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
5
  "description": "流媒体合租主题插件",
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "id": "netflix",
19
19
  "name": "流媒体合租主题",
20
20
  "description": "流媒体合租商店主题与页面展示配置",
21
- "version": "0.1.6",
21
+ "version": "0.1.8",
22
22
  "runtime": {
23
23
  "type": "npm-static",
24
24
  "publicRoot": "public"
package/plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schemaVersion": 1,
4
4
  "id": "netflix",
5
5
  "name": "流媒体合租主题",
6
- "version": "0.1.6",
6
+ "version": "0.1.8",
7
7
  "description": "流媒体合租商店主题与页面展示配置。",
8
8
  "author": "D&J Studio",
9
9
  "license": "MIT",
package/public/console.js CHANGED
@@ -120,7 +120,8 @@
120
120
  }
121
121
 
122
122
  function clearPage() {
123
- if (typeof window.__DUJIAO_RELEASE_CONSOLE_GATE__ === 'function' && !isThemeRoute()) window.__DUJIAO_RELEASE_CONSOLE_GATE__();
123
+ // The homepage owns the shared loading gate until its theme is ready.
124
+ if (typeof window.__DUJIAO_RELEASE_CONSOLE_GATE__ === 'function' && location.pathname !== '/' && !isThemeRoute()) window.__DUJIAO_RELEASE_CONSOLE_GATE__();
124
125
  if (root) root.remove();
125
126
  if (host && host.isConnected) {
126
127
  host.style.display = hostDisplay;
@@ -715,6 +716,8 @@
715
716
  });
716
717
  }
717
718
 
719
+ window.__NETFLIX_THEME_ROUTE_CHANGE__ = routeChanged;
720
+ window.__NETFLIX_THEME_RELEASE__ = clearPage;
718
721
  timer = setInterval(routeChanged, 400);
719
722
  window.addEventListener('popstate', routeChanged);
720
723
  window.addEventListener('pagehide', function () { sequence++; clearInterval(timer); clearPage(); });
package/public/home.js CHANGED
@@ -511,6 +511,7 @@
511
511
  }).catch(function () { if (!root) releaseHomeGate(); });
512
512
  }
513
513
 
514
+ window.__NETFLIX_THEME_HOME_ROUTE_SYNC__ = syncRoute;
514
515
  window.addEventListener('popstate', syncRoute);
515
516
  window.addEventListener('hashchange', syncRoute);
516
517
  checkPlugin();