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]]
name = "theseus"
version = "0.8.3"
version = "0.8.4"
dependencies = [
"async-recursion",
"async-tungstenite",
@ -5662,7 +5662,7 @@ dependencies = [
[[package]]
name = "theseus_gui"
version = "0.8.3"
version = "0.8.4"
dependencies = [
"chrono",
"cocoa 0.25.0",

View File

@ -1,7 +1,7 @@
{
"name": "@modrinth/app-frontend",
"private": true,
"version": "0.8.3",
"version": "0.8.4",
"type": "module",
"scripts": {
"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)) &&
!target.classList.contains('router-link-active') &&
!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)
}

View File

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

View File

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

View File

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