1
0
Fork 0
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:
lemonslut 2025-06-07 22:11:11 -06:00
parent 0fa04e0659
commit 5b43e84bab
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -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',
{

View file

@ -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>