diff --git a/dist/cli.js b/dist/cli.js index 4e0d45f..8a70f86 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 7b760fe..c224d85 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 54ed16d..6796867 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; }