Add support for configurable CW clickthrough.

This commit is contained in:
ensra 2018-08-20 02:59:06 +01:00
parent 9982376f9a
commit 1121f32c48
6 changed files with 55 additions and 17 deletions

View file

@ -15,6 +15,7 @@ const settings = {
streamingLocal: this.$store.state.config.streaming,
pauseOnUnfocusedLocal: this.$store.state.config.pauseOnUnfocused,
hoverPreviewLocal: this.$store.state.config.hoverPreview,
expandCWLocal: this.$store.state.config.expandCW,
stopGifs: this.$store.state.config.stopGifs,
loopSilentAvailable:
// Firefox
@ -65,6 +66,9 @@ const settings = {
value = filter(value.split('\n'), (word) => trim(word).length > 0)
this.$store.dispatch('setOption', { name: 'muteWords', value })
},
expandCWLocal (value) {
this.$store.dispatch('setOption', { name: 'expandCW', value })
},
stopGifs (value) {
this.$store.dispatch('setOption', { name: 'stopGifs', value })
}