-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add favorite format feature #1927
base: master
Are you sure you want to change the base?
Conversation
js/client-chat.js
Outdated
this.add('That format does not exist.'); | ||
return false; | ||
} | ||
if (!localStorage.getItem('favoriteFormats')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Storage.prefs('favoriteformat')
instead of localStorage.getItem
.
Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
} | ||
buf += '<button class="button" name="parseCommand" value="/favoriteformat list">(Back to List)</button>'; | ||
buf += '</div>'; | ||
this.add('|uhtmlchange|favformat|' + buf); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.add('|uhtmlchange|favformat|' + buf); | |
this.add('|uhtmlchange|favformat|' + buf); |
Probably would be easier to use popups - otherwise, how does the UHTML work when they aren't in a room?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, yeah, popups do sound better
Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com> Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
Suggestion taken from here