Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

3.5.1

Tw9377e212d2f6a7
diff --git a/dist/cli.js b/dist/cli.js
index 4e0d45f0..8a70f865 100755
--- a/dist/cli.js
+++ b/dist/cli.js
@@ -23,7 +23,7 @@ import sharp from 'sharp';
import * as psl from 'psl';
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 engines = {
node: ">=18.0.0"
diff --git a/package.json b/package.json
index 7b760feb..c224d85a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "pake-cli",
- "version": "3.5.0",
+ "version": "3.5.1",
"description": "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。",
"engines": {
"node": ">=18.0.0"
diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js
index 54ed16d5..6796867d 100644
--- a/src-tauri/src/inject/event.js
+++ b/src-tauri/src/inject/event.js
@@ -422,6 +422,9 @@ document.addEventListener("DOMContentLoaded", () => {
if (target === "_new") {
if (forceInternalNavigation) {
+ e.preventDefault();
+ e.stopImmediatePropagation();
+ window.location.href = absoluteUrl;
return;
}