Skip to content

Commit

Permalink
npm run lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jul 28, 2023
1 parent 9e03683 commit e81f61e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ AFRAME.registerComponent('notify', {
schema: {
duration: { type: 'number', default: 2000 },
ripple: { type: 'boolean', default: true },
position: {
type: 'string',
position: {
type: 'string',
default: {
// x: left | center | right
// y: top | center | bottom
x: 'center',
y: 'bottom'
}
}
},
dismissible: { type: 'boolean', default: false },
type: {type: 'string', default: 'info'},
message: {type: 'string', default: ''}
type: { type: 'string', default: 'info' },
message: { type: 'string', default: '' }
},
init: function () {
this.notify = new Notyf({
Expand All @@ -27,7 +27,7 @@ AFRAME.registerComponent('notify', {
icon: false
}
],
// Set your global Notyf configuration here
// Set your global Notyf configuration here
duration: this.data.duration,
ripple: this.data.ripple,
position: this.data.position,
Expand All @@ -53,7 +53,7 @@ AFRAME.registerComponent('notify', {

if (newMessage && this.types.includes(messageType)) {
this.message(newMessage, messageType);
this.data.message = '';
this.data.message = '';
}
}
});
});

0 comments on commit e81f61e

Please sign in to comment.