From 016c3d779bc7d33078af1353b404eec6124d5bb0 Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Wed, 28 Aug 2024 23:21:35 -0700 Subject: [PATCH] Fix localhost windows opening (#2331) --- Cargo.lock | 4 ++-- apps/app-frontend/package.json | 2 +- apps/app-frontend/src/App.vue | 3 ++- apps/app/Cargo.toml | 2 +- apps/app/tauri.conf.json | 2 +- packages/app-lib/Cargo.toml | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e858a1833..3a549d8da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/apps/app-frontend/package.json b/apps/app-frontend/package.json index 4ad3ed451..232833726 100644 --- a/apps/app-frontend/package.json +++ b/apps/app-frontend/package.json @@ -1,7 +1,7 @@ { "name": "@modrinth/app-frontend", "private": true, - "version": "0.8.3", + "version": "0.8.4", "type": "module", "scripts": { "dev": "vite", diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index 5c62a192a..30976a333 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -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) } diff --git a/apps/app/Cargo.toml b/apps/app/Cargo.toml index b3fcc8f67..7df6c57db 100644 --- a/apps/app/Cargo.toml +++ b/apps/app/Cargo.toml @@ -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/" diff --git a/apps/app/tauri.conf.json b/apps/app/tauri.conf.json index 1faed67d4..c66a17d79 100644 --- a/apps/app/tauri.conf.json +++ b/apps/app/tauri.conf.json @@ -48,7 +48,7 @@ ] }, "productName": "Modrinth App", - "version": "0.8.3", + "version": "0.8.4", "identifier": "ModrinthApp", "plugins": { "deep-link": { diff --git a/packages/app-lib/Cargo.toml b/packages/app-lib/Cargo.toml index e5825ad42..3e4507445 100644 --- a/packages/app-lib/Cargo.toml +++ b/packages/app-lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "theseus" -version = "0.8.3" +version = "0.8.4" authors = ["Jai A "] edition = "2021"