schoolbox web extension :)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: disable logging in production

- close #276

willow 6d7d4929 aca4eb38

+3 -3
+1 -1
src/entrypoints/end.content.ts
··· 6 6 const settings = await globalSettings.storage.getValue(); 7 7 const urls = (await schoolboxUrls.storage.getValue()).urls; 8 8 9 - console.log((await schoolboxUrls.storage.getValue()).urls); 9 + logger.info((await schoolboxUrls.storage.getValue()).urls); 10 10 11 11 if (!settings.global) return; 12 12 const footer = document.querySelector("#footer > ul");
+2 -2
src/entrypoints/plugins/modernIcons/index.ts
··· 46 46 const icon = document.querySelector(selector); 47 47 // Check if the icon already exists 48 48 if (icon && !icon.querySelector(".material-symbols-rounded")) { 49 - // console.log(`Inserting icon for ${className} at ${selector}`); 49 + // logger.info(`Inserting icon for ${className} at ${selector}`); 50 50 const iconElement = document.createElement("i"); 51 51 iconElement.innerHTML = iconName; 52 52 iconElement.classList.add("material-symbols-rounded"); ··· 65 65 66 66 const iconNames = [...new Set(Object.values(icons))].sort(); 67 67 const fontUrl = `https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL@0..1&icon_names=${iconNames.join(",")}`; 68 - // console.log(fontUrl); 68 + // logger.info(fontUrl); 69 69 70 70 // inject font face 71 71 const style = document.createElement("link");