Skip to content

Commit

Permalink
Remove debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarrison committed Jan 3, 2024
1 parent 5901445 commit 920942e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/content-script/domQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,5 @@ export async function findOne(selector: string, xpath?: boolean) {
if (results.length > 1) {
console.warn('Time sheet autofiller found multiple items matching query! May work incorrectly. Please report this.')
}
console.log(results);
return results[0];
}
3 changes: 1 addition & 2 deletions src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ chrome.tabs.onActivated.addListener((tabInfo) => {
setSupported(false);
const supportQuery: SupportQuery = { messageType: 'support' };
chrome.tabs.sendMessage(tabInfo.tabId, supportQuery)
.then(isSupported => { console.log(`response ${isSupported}`); setSupported(isSupported) })
.then(isSupported => setSupported(isSupported))
// Ignore errors: they are just because we try to send messages to tabs without our content
// script
.catch(receivingEndDoesNotExist => null);
Expand All @@ -24,7 +24,6 @@ chrome.runtime.onMessage.addListener((message: Supported) => {
chrome.action.onClicked.addListener((tab) => {
sendEvents([{ type: "activated" }]);
chrome.storage.sync.get().then((settings: TimeCardOptions) => {
console.dir(settings);
const options: TimeCardOptionsMessage = { messageType: 'click', ...settings };
chrome.tabs.sendMessage(tab.id, options);
}).catch(sendError);
Expand Down

0 comments on commit 920942e

Please sign in to comment.