From c3704cdc63b9c1a84214d073d90c6568ad3b6876 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 5 Jun 2020 10:14:54 +0100 Subject: [PATCH] Close #75 --- src/components/appContent.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/appContent.vue b/src/components/appContent.vue index 4bce163d..319ddc35 100644 --- a/src/components/appContent.vue +++ b/src/components/appContent.vue @@ -223,6 +223,16 @@ export default { created: function() { if (this.$store.getters.ready) { + // Detect local connection + if ( + ["localhost", "0.0.0.0", "127.0.0.1", "[::1]"].includes( + window.location.hostname + ) + ) { + this.$store.commit("changeSetting", ["disableStream", true]); + this.$store.commit("changeSetting", ["autoGpuPreview", true]); + this.$store.commit("changeSetting", ["trackWindow", true]); + } // Update plugins this.updatePlugins().then(() => { // Start initialisation modals