diff --git a/package.json b/package.json
index b806cb3..c1171fa 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "evolution-manager",
- "version": "0.2.9",
+ "version": "0.2.10",
"main": "dist",
"scripts": {
"dev": "vite",
diff --git a/src/components/modal/About.vue b/src/components/modal/About.vue
index caf2d25..00541e2 100644
--- a/src/components/modal/About.vue
+++ b/src/components/modal/About.vue
@@ -38,7 +38,7 @@
segurança e privacidade, mantendo suas informações confidenciais e
protegidas.
-
+
Por conta de todo o processamento ser realizado no navegador, é
necessário que o servidor da Evolution API seja acessado através de
uma conexão segura (HTTPS).
@@ -67,7 +67,7 @@ export default {
name: "SettingsModal",
data: () => ({
dialog: false,
- isHttps: !window.location.protocol === "https:",
+ isHttps: window.location.protocol === "https:",
}),
methods: {
open() {
diff --git a/src/components/modal/Settings.vue b/src/components/modal/Settings.vue
index 99b3699..78d93ae 100644
--- a/src/components/modal/Settings.vue
+++ b/src/components/modal/Settings.vue
@@ -137,7 +137,7 @@ export default {
loading: false,
error: false,
AppStore: useAppStore(),
- isHttps: !window.location.protocol === "https:",
+ isHttps: window.location.protocol === "https:",
}),
methods: {
logout() {
@@ -186,7 +186,10 @@ export default {
(v) =>
new RegExp(`^(${!this.isHttps ? "http|" : ""}https)://`, "i").test(
v
- ) || (this.isHttps ? "URL inválida, use https" : "URL inválida"),
+ ) ||
+ (this.isHttps
+ ? "URL inválida, ela deve começar com https"
+ : "URL inválida, ela deve começar com http ou https"),
];
},
},