mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +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/require-prop-types': 'off',
|
||||
'vue/require-default-prop': 'off',
|
||||
'vue/no-mutating-props': 'off', // TODO: all these
|
||||
'vue/html-closing-bracket-newline': [
|
||||
'error',
|
||||
{
|
||||
|
|
|
@ -33,10 +33,10 @@ export default {
|
|||
|
||||
mounted() {
|
||||
const scroller = this.$refs.scroller;
|
||||
if (!scroller || ! window.ffzSimplebar || scroller.SimpleBar)
|
||||
if (!scroller || !window.ffzSimplebar || scroller.SimpleBar)
|
||||
return;
|
||||
|
||||
new ffzSimplebar(scroller, ffzSimplebar.getElOptions(scroller));
|
||||
new window.ffzSimplebar(scroller, window.ffzSimplebar.getElOptions(scroller));
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
@ -52,4 +52,4 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue