🔖 update version

This commit is contained in:
Tw93
2024-12-17 15:24:25 +08:00
parent 35dcf76d80
commit bc747f111a
3 changed files with 5 additions and 5 deletions

2
src-tauri/Cargo.lock generated
View File

@@ -2299,7 +2299,7 @@ dependencies = [
[[package]] [[package]]
name = "pake" name = "pake"
version = "0.1.0" version = "3.0.0"
dependencies = [ dependencies = [
"serde", "serde",
"serde_json", "serde_json",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "pake" name = "pake"
version = "0.1.0" version = "3.0.0"
description = "🤱🏻 Turn any webpage into a desktop app with Rust." description = "🤱🏻 Turn any webpage into a desktop app with Rust."
authors = ["Tw93"] authors = ["Tw93"]
license = "MIT" license = "MIT"

View File

@@ -175,19 +175,19 @@ document.addEventListener('DOMContentLoaded', () => {
}; };
} }
const isExternalLink = link => window.location.host !== link.host;
// process special download protocol['data:','blob:'] // process special download protocol['data:','blob:']
const isSpecialDownload = url => ['blob', 'data'].some(protocol => url.startsWith(protocol)); const isSpecialDownload = url => ['blob', 'data'].some(protocol => url.startsWith(protocol));
const isDownloadRequired = (url, anchorElement, e) => anchorElement.download || e.metaKey || e.ctrlKey || isDownloadLink(url); const isDownloadRequired = (url, anchorElement, e) => anchorElement.download || e.metaKey || e.ctrlKey || isDownloadLink(url);
const handleExternalLink = (url) => { const handleExternalLink = url => {
invoke('plugin:shell|open', { invoke('plugin:shell|open', {
path: url, path: url,
}); });
}; };
const detectAnchorElementClick = e => { const detectAnchorElementClick = e => {
const anchorElement = e.target.closest('a'); const anchorElement = e.target.closest('a');
if (anchorElement && anchorElement.href) { if (anchorElement && anchorElement.href) {
@@ -224,7 +224,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Rewrite the window.open function. // Rewrite the window.open function.
const originalWindowOpen = window.open; const originalWindowOpen = window.open;
window.open = function(url, name, specs) { window.open = function (url, name, specs) {
// Apple login and google login // Apple login and google login
if (name === 'AppleAuthentication') { if (name === 'AppleAuthentication') {
//do nothing //do nothing