Skip to content

Commit

Permalink
Debugging something
Browse files Browse the repository at this point in the history
  • Loading branch information
kesselborn committed Jan 18, 2019
1 parent e78079a commit 36cbb88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conex-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@ const storeScreenshot = async function(tabId, changeInfo, tab) {
if(settings['create-thumbnail']) {
console.debug(`capturing tab for ${cleanedUrl}`);
imageData = await browser.tabs.captureTab(tab.id, { format: 'jpeg', quality: imageQuality });
console.debug(` capturing for ${cleanedUrl} finished`);
console.debug(` capturing for ${cleanedUrl} finished`);
}
if(settings['show-favicons'] || settings['create-thumbnail']) {
console.debug(` storing captured image for tab for ${cleanedUrl}`);
await browser.storage.local.set({ [cleanedUrl]: { thumbnail: imageData, favicon: tab.favIconUrl } });
// await browser.storage.local.set({ [cleanedUrl]: { thumbnail: imageData, favicon: tab.favIconUrl } });
console.debug(` succesfully created thumbnail for ${cleanedUrl}`);
}
const favIconKey = `favicon:${cleanedUrl.split("/")[0]}`;
browser.storage.local.set({ [favIconKey]: { favicon: tab.favIconUrl } });
// const favIconKey = `favicon:${cleanedUrl.split("/")[0]}`;
// browser.storage.local.set({ [favIconKey]: { favicon: tab.favIconUrl } });
} catch(e) {
console.error(`error creating tab screenshot: ${e}`);
}
Expand Down

0 comments on commit 36cbb88

Please sign in to comment.