This commit is contained in:
Tw93
2025-11-11 16:03:08 +08:00
parent 4fc524e0b2
commit 77e212d2f6
3 changed files with 5 additions and 2 deletions

2
dist/cli.js vendored
View File

@@ -23,7 +23,7 @@ import sharp from 'sharp';
import * as psl from 'psl'; import * as psl from 'psl';
var name = "pake-cli"; var name = "pake-cli";
var version = "3.5.0"; var version = "3.5.1";
var description = "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。"; var description = "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。";
var engines = { var engines = {
node: ">=18.0.0" node: ">=18.0.0"

2
package.json vendored
View File

@@ -1,6 +1,6 @@
{ {
"name": "pake-cli", "name": "pake-cli",
"version": "3.5.0", "version": "3.5.1",
"description": "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。", "description": "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。",
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=18.0.0"

View File

@@ -422,6 +422,9 @@ document.addEventListener("DOMContentLoaded", () => {
if (target === "_new") { if (target === "_new") {
if (forceInternalNavigation) { if (forceInternalNavigation) {
e.preventDefault();
e.stopImmediatePropagation();
window.location.href = absoluteUrl;
return; return;
} }