mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 15:27:43 +00:00
eslint: ref window.ffzSimplebar instead of just ffzSimplebar
This commit is contained in:
parent
0fa04e0659
commit
5b43e84bab
2 changed files with 4 additions and 3 deletions
|
@ -126,6 +126,7 @@ module.exports = {
|
||||||
'vue/max-attributes-per-line': 'off',
|
'vue/max-attributes-per-line': 'off',
|
||||||
'vue/require-prop-types': 'off',
|
'vue/require-prop-types': 'off',
|
||||||
'vue/require-default-prop': 'off',
|
'vue/require-default-prop': 'off',
|
||||||
|
'vue/no-mutating-props': 'off', // TODO: all these
|
||||||
'vue/html-closing-bracket-newline': [
|
'vue/html-closing-bracket-newline': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,10 +33,10 @@ export default {
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
const scroller = this.$refs.scroller;
|
const scroller = this.$refs.scroller;
|
||||||
if (!scroller || ! window.ffzSimplebar || scroller.SimpleBar)
|
if (!scroller || !window.ffzSimplebar || scroller.SimpleBar)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
new ffzSimplebar(scroller, ffzSimplebar.getElOptions(scroller));
|
new window.ffzSimplebar(scroller, window.ffzSimplebar.getElOptions(scroller));
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue