Skip to content

Commit

Permalink
Fix bug where new installations have compose pane styling enabled aut…
Browse files Browse the repository at this point in the history
…omatically. Add additional debug messages. Increase icon size
  • Loading branch information
jerboa88 committed Dec 26, 2021
1 parent 66bd0fe commit 157f788
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
20 changes: 10 additions & 10 deletions img/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
console.debug('[' + pad(d.getHours()) + ':' + pad(d.getMinutes()) + '.' + pad(d.getSeconds()) + '] DMFO: ' + msg);
}

log('Background script loaded')

chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
// Url property is only present when we have the 'tabs' permission
if ('url' in tab && 'status' in changeInfo && changeInfo.status === 'loading') {
Expand Down
6 changes: 5 additions & 1 deletion js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
console.debug('[' + pad(d.getHours()) + ':' + pad(d.getMinutes()) + '.' + pad(d.getSeconds()) + '] DMFO: ' + msg);
};

chrome.storage.sync.get({ composePaneStyling: true }, ({ composePaneStyling }) => {
log('Content script loaded')

chrome.storage.sync.get({ composePaneStyling: false }, ({ composePaneStyling }) => {
log('Options loaded')

const getBottomBar = (composePane) => {
return composePane.querySelector('div[style="background-color: rgb(250, 249, 248);"')
};
Expand Down

0 comments on commit 157f788

Please sign in to comment.