🔖 update version
This commit is contained in:
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -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",
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
6
src-tauri/src/inject/event.js
vendored
6
src-tauri/src/inject/event.js
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user