Fix localhost windows opening (#2331)

This commit is contained in:
Geometrically 2024-08-28 23:21:35 -07:00 committed by GitHub
parent acf26940d6
commit 016c3d779b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 7 deletions

4
Cargo.lock generated
View File

@ -5611,7 +5611,7 @@ dependencies = [
[[package]] [[package]]
name = "theseus" name = "theseus"
version = "0.8.3" version = "0.8.4"
dependencies = [ dependencies = [
"async-recursion", "async-recursion",
"async-tungstenite", "async-tungstenite",
@ -5662,7 +5662,7 @@ dependencies = [
[[package]] [[package]]
name = "theseus_gui" name = "theseus_gui"
version = "0.8.3" version = "0.8.4"
dependencies = [ dependencies = [
"chrono", "chrono",
"cocoa 0.25.0", "cocoa 0.25.0",

View File

@ -1,7 +1,7 @@
{ {
"name": "@modrinth/app-frontend", "name": "@modrinth/app-frontend",
"private": true, "private": true,
"version": "0.8.3", "version": "0.8.4",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@ -173,7 +173,8 @@ document.querySelector('body').addEventListener('click', function (e) {
['http://', 'https://', 'mailto:', 'tel:'].some((v) => target.href.startsWith(v)) && ['http://', 'https://', 'mailto:', 'tel:'].some((v) => target.href.startsWith(v)) &&
!target.classList.contains('router-link-active') && !target.classList.contains('router-link-active') &&
!target.href.startsWith('http://localhost') && !target.href.startsWith('http://localhost') &&
!target.href.startsWith('https://tauri.localhost') !target.href.startsWith('https://tauri.localhost') &&
!target.href.startsWith('http://tauri.localhost')
) { ) {
open(target.href) open(target.href)
} }

View File

@ -1,6 +1,6 @@
[package] [package]
name = "theseus_gui" name = "theseus_gui"
version = "0.8.3" version = "0.8.4"
description = "The Modrinth App is a desktop application for managing your Minecraft mods" description = "The Modrinth App is a desktop application for managing your Minecraft mods"
license = "GPL-3.0-only" license = "GPL-3.0-only"
repository = "https://github.com/modrinth/code/apps/app/" repository = "https://github.com/modrinth/code/apps/app/"

View File

@ -48,7 +48,7 @@
] ]
}, },
"productName": "Modrinth App", "productName": "Modrinth App",
"version": "0.8.3", "version": "0.8.4",
"identifier": "ModrinthApp", "identifier": "ModrinthApp",
"plugins": { "plugins": {
"deep-link": { "deep-link": {

View File

@ -1,6 +1,6 @@
[package] [package]
name = "theseus" name = "theseus"
version = "0.8.3" version = "0.8.4"
authors = ["Jai A <jaiagr+gpg@pm.me>"] authors = ["Jai A <jaiagr+gpg@pm.me>"]
edition = "2021" edition = "2021"