@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 +2 -2
- package/plugin.json +1 -1
- package/public/console.js +4 -1
- package/public/home.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etspress/netflix",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
21
|
+
"version": "0.1.8",
|
|
22
22
|
"runtime": {
|
|
23
23
|
"type": "npm-static",
|
|
24
24
|
"publicRoot": "public"
|
package/plugin.json
CHANGED
package/public/console.js
CHANGED
|
@@ -120,7 +120,8 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
function clearPage() {
|
|
123
|
-
|
|
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