@dcl-regenesislabs/bevy-explorer-web 0.1.0-22248470623.commit-3de2d44 → 0.1.0-22307867397.commit-8d544ee
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/.env +1 -1
- package/index.html +12 -14
- package/package.json +3 -3
- package/pkg/webgpu_build_bg.wasm +0 -0
package/.env
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
1
|
+
PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22307867397.commit-8d544ee"
|
package/index.html
CHANGED
|
@@ -16,17 +16,14 @@
|
|
|
16
16
|
return /Android|iPhone|iPad|iPod|webOS|BlackBerry|Opera Mini|IEMobile|Windows Phone/i.test(navigator.userAgent);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (/Vivaldi\//.test(ua)) return false;
|
|
28
|
-
if (navigator.brave && typeof navigator.brave.isBrave === 'function') return false;
|
|
29
|
-
return true;
|
|
19
|
+
function isChromiumBased() {
|
|
20
|
+
return /Chrome\//.test(navigator.userAgent);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function hasBypassCookie() {
|
|
24
|
+
return document.cookie.split(';').some(function (c) {
|
|
25
|
+
return c.trim().indexOf('bypass_browser_check=') === 0;
|
|
26
|
+
});
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
function renderGatePage(html) {
|
|
@@ -90,7 +87,7 @@
|
|
|
90
87
|
'<p style="margin-bottom:2rem;color:rgba(255,255,255,0.7);">This experience is not available on mobile browsers. Download the app instead:</p>' +
|
|
91
88
|
'<div class="store-buttons">' + buttons + '</div>'
|
|
92
89
|
);
|
|
93
|
-
} else if (!
|
|
90
|
+
} else if (!isChromiumBased() && !hasBypassCookie()) {
|
|
94
91
|
window.__browserGateBlocked = true;
|
|
95
92
|
renderGatePage(
|
|
96
93
|
'<h1 style="font-size:1.8rem;margin-bottom:1rem;">Browser Not Supported</h1>' +
|
|
@@ -100,7 +97,8 @@
|
|
|
100
97
|
'<svg viewBox="0 0 48 48" fill="none"><defs><linearGradient id="cg-a" x1="3.2173" y1="15" x2="44.7812" y2="15" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#d93025"/><stop offset="1" stop-color="#ea4335"/></linearGradient><linearGradient id="cg-b" x1="20.7219" y1="47.6791" x2="41.5039" y2="11.6837" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fcc934"/><stop offset="1" stop-color="#fbbc04"/></linearGradient><linearGradient id="cg-c" x1="26.5981" y1="46.5015" x2="5.8161" y2="10.506" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#1e8e3e"/><stop offset="1" stop-color="#34a853"/></linearGradient></defs><circle cx="24" cy="23.9947" r="12" fill="#fff"/><path d="M24,12H44.7812a23.9939,23.9939,0,0,0-41.5639.0029L13.6079,30l.0093-.0024A11.9852,11.9852,0,0,1,24,12Z" fill="url(#cg-a)"/><circle cx="24" cy="24" r="9.5" fill="#1a73e8"/><path d="M34.3913,30.0029,24.0007,48A23.994,23.994,0,0,0,44.78,12.0031H23.9989l-.0025.0093A11.985,11.985,0,0,1,34.3913,30.0029Z" fill="url(#cg-b)"/><path d="M13.6086,30.0031,3.218,12.006A23.994,23.994,0,0,0,24.0025,48L34.3931,30.0029l-.0067-.0068a11.9852,11.9852,0,0,1-20.7778.007Z" fill="url(#cg-c)"/></svg>' +
|
|
101
98
|
'Download Chrome' +
|
|
102
99
|
'</a>' +
|
|
103
|
-
'</div>'
|
|
100
|
+
'</div>' +
|
|
101
|
+
'<p style="margin-top:1rem;"><a href="#" onclick="document.cookie=\'bypass_browser_check=1;path=/;max-age=2592000\';location.reload();return false;" style="color:rgba(255,255,255,0.5);font-size:0.85rem;">try anyway...</a></p>'
|
|
104
102
|
);
|
|
105
103
|
}
|
|
106
104
|
})();
|
|
@@ -413,7 +411,7 @@
|
|
|
413
411
|
}
|
|
414
412
|
</style>
|
|
415
413
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
|
|
416
|
-
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
414
|
+
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22307867397.commit-8d544ee";</script>
|
|
417
415
|
</head>
|
|
418
416
|
<body>
|
|
419
417
|
<div id="header" class="container">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl-regenesislabs/bevy-explorer-web",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-22307867397.commit-8d544ee",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"postinstall": "node ./scripts/prebuild.js"
|
|
6
6
|
},
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/decentraland/bevy-explorer.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
12
|
-
"commit": "
|
|
11
|
+
"homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-22307867397.commit-8d544ee",
|
|
12
|
+
"commit": "8d544ee4737e2660e8a7e429df17e315d6eb56c7"
|
|
13
13
|
}
|
package/pkg/webgpu_build_bg.wasm
CHANGED
|
Binary file
|