This commit is contained in:
Joel Collins 2020-06-05 10:14:54 +01:00
parent 10a4df130c
commit c3704cdc63

View file

@ -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