Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
casualsoty committed Sep 23, 2023
1 parent 5162066 commit 8995a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions module.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ let scripts = '' +

Hooks.on('changeSidebarTab', _ => {
if (!document.getElementById('open-maemotes-button')) {

/* 1
*/

document.getElementById('chat-controls').innerHTML +=
'<style>.close-maemotes-button { display: none; }</style>' +
'<a ' +
Expand All @@ -40,11 +36,8 @@ Hooks.on('changeSidebarTab', _ => {
'</svg>' +
'</a>';

/* 2
*/

document.getElementById('open-maemotes-button').addEventListener('click', _ => {
const FOOTER = game.user.role > 2 ? game.i18n.localize('MAEMOTES.Dialog.FooterGamemaster') : game.i18n.localize('MAEMOTES.Dialog.FooterPlayer');
const FOOTER = game.user.isGM ? game.i18n.localize('MAEMOTES.Dialog.FooterGamemaster') : game.i18n.localize('MAEMOTES.Dialog.FooterPlayer');
let isDialogOpen = 0;

if (dialog) {
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"readme": "https://github.com/casualsoty/maemotes/blob/main/README.md",
"title": "Maemotes",
"url": "https://github.com/casualsoty/maemotes",
"version": "1.0.6"
"version": "1.0.7"
}

0 comments on commit 8995a01

Please sign in to comment.