feat(下载入口): 新增桌面版下载入口
build.yaml / build (push) Successful in 46s

This commit is contained in:
xiaoqidun committed 2026-10-23 21:36:37 +08:00
1 parent 3a39fb293f
commit 850057f46f
2 files changed
+3

No files matched your search

+1
View File
@@ -198,6 +198,7 @@
<h2 id="aboutTitle" class="form-title">OFDGo</h2> <h2 id="aboutTitle" class="form-title">OFDGo</h2>
<div class="about-row"><span>构建版本</span><span id="aboutVersion">develop</span></div> <div class="about-row"><span>构建版本</span><span id="aboutVersion">develop</span></div>
<div class="about-row"><span>项目官网</span><a href="https://ofdgo.aite.me/" target="_blank" rel="noreferrer">https://ofdgo.aite.me/</a></div> <div class="about-row"><span>项目官网</span><a href="https://ofdgo.aite.me/" target="_blank" rel="noreferrer">https://ofdgo.aite.me/</a></div>
<div class="about-row"><span>桌面下载</span><a href="https://ofdgo.aite.me/releases/" target="_blank" rel="noreferrer">https://ofdgo.aite.me/releases/</a></div>
<div class="about-row"><span>项目仓库</span><a href="https://github.com/xiaoqidun/ofdgo" target="_blank" rel="noreferrer">https://github.com/xiaoqidun/ofdgo</a></div> <div class="about-row"><span>项目仓库</span><a href="https://github.com/xiaoqidun/ofdgo" target="_blank" rel="noreferrer">https://github.com/xiaoqidun/ofdgo</a></div>
</form> </form>
</dialog> </dialog>
+2
View File
@@ -92,6 +92,8 @@ async function readResource(event, navigation) {
bundle = await readBundle(meta, CLIENT_PREFIX + event.clientId); bundle = await readBundle(meta, CLIENT_PREFIX + event.clientId);
} }
if (!bundle || !await caches.has(bundle.name)) { if (!bundle || !await caches.has(bundle.name)) {
const client = await self.clients.get(event.clientId);
if (client && resourceURL(client.url) !== self.registration.scope) return fetch(event.request);
return Response.error(); return Response.error();
} }
if (event.resultingClientId) { if (event.resultingClientId) {