mirror of https://github.com/FreeTubeApp/FreeTube
Move usingElectron from computed into data (#4810)
This commit is contained in:
parent
31c813ddfd
commit
b65b1a6be9
|
@ -26,6 +26,7 @@ export default defineComponent({
|
|||
},
|
||||
data: function () {
|
||||
return {
|
||||
usingElectron: process.env.IS_ELECTRON,
|
||||
formatValues: [
|
||||
'dash',
|
||||
'legacy',
|
||||
|
@ -60,10 +61,6 @@ export default defineComponent({
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
usingElectron: function () {
|
||||
return process.env.IS_ELECTRON
|
||||
},
|
||||
|
||||
backendPreference: function () {
|
||||
return this.$store.getters.getBackendPreference
|
||||
},
|
||||
|
|
|
@ -20,6 +20,7 @@ export default defineComponent({
|
|||
},
|
||||
data: function () {
|
||||
return {
|
||||
usingElectron: process.env.IS_ELECTRON,
|
||||
minUiScale: 50,
|
||||
maxUiScale: 300,
|
||||
uiScaleStep: 5,
|
||||
|
@ -122,10 +123,6 @@ export default defineComponent({
|
|||
|
||||
areColorThemesEnabled: function() {
|
||||
return this.baseTheme !== 'hotPink'
|
||||
},
|
||||
|
||||
usingElectron: function () {
|
||||
return process.env.IS_ELECTRON
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
|
|
|
@ -39,14 +39,11 @@ export default defineComponent({
|
|||
},
|
||||
data: function () {
|
||||
return {
|
||||
usingElectron: process.env.IS_ELECTRON,
|
||||
unlocked: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
usingElectron: function () {
|
||||
return process.env.IS_ELECTRON
|
||||
},
|
||||
|
||||
settingsPassword: function () {
|
||||
return this.$store.getters.getSettingsPassword
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue