[+] Detect demo mode

This commit is contained in:
Hykilpikonna
2020-08-01 14:23:14 -04:00
parent 6015c27e1b
commit ba14fc80a9
+3
View File
@@ -55,6 +55,9 @@ export default class App extends Vue
// Show rating
showRating: boolean = this.$cookies.get('show-rating') == 'set=yes';
// Demo mode
demoMode: boolean = window.location.hostname == 'demo.vera.hydev.org'
/**
* This is called when the instance is created.
*/