🔖 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]]
name = "pake"
version = "0.1.0"
version = "3.0.0"
dependencies = [
"serde",
"serde_json",

View File

@@ -1,6 +1,6 @@
[package]
name = "pake"
version = "0.1.0"
version = "3.0.0"
description = "🤱🏻 Turn any webpage into a desktop app with Rust."
authors = ["Tw93"]
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:']
const isSpecialDownload = url => ['blob', 'data'].some(protocol => url.startsWith(protocol));
const isDownloadRequired = (url, anchorElement, e) => anchorElement.download || e.metaKey || e.ctrlKey || isDownloadLink(url);
const handleExternalLink = (url) => {
const handleExternalLink = url => {
invoke('plugin:shell|open', {
path: url,
});
};
const detectAnchorElementClick = e => {
const anchorElement = e.target.closest('a');
if (anchorElement && anchorElement.href) {
@@ -224,7 +224,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Rewrite the window.open function.
const originalWindowOpen = window.open;
window.open = function(url, name, specs) {
window.open = function (url, name, specs) {
// Apple login and google login
if (name === 'AppleAuthentication') {
//do nothing