Commit 5870098b authored by Jiří Helebrant's avatar Jiří Helebrant

Icon adjustment

parent 15436d3c
......@@ -87,37 +87,37 @@ const drawTabStatus = (ctx, color) => {
const drawResolverStatus = (ctx, color) => {
ctx.fillStyle = color
ctx.beginPath()
ctx.moveTo(2.154, 5.661)
ctx.lineTo(11.826, 5.661)
ctx.lineTo(10.642, 27.935)
ctx.lineTo(3.338, 27.935)
ctx.lineTo(2.154, 5.661)
ctx.moveTo(0.154, 5.661)
ctx.lineTo(9.826, 5.661)
ctx.lineTo(8.642, 27.935)
ctx.lineTo(1.338, 27.935)
ctx.lineTo(0.154, 5.661)
ctx.closePath()
ctx.moveTo(6.99, 32.411)
ctx.lineTo(6.99, 32.411)
ctx.quadraticCurveTo(9.048, 32.411, 10.514, 33.877)
ctx.lineTo(10.514, 33.877)
ctx.lineTo(10.514, 33.877)
ctx.quadraticCurveTo(11.98, 35.343, 11.98, 37.401)
ctx.lineTo(11.98, 37.401)
ctx.lineTo(11.98, 37.401)
ctx.quadraticCurveTo(11.98, 39.459, 10.514, 40.899)
ctx.lineTo(10.514, 40.899)
ctx.lineTo(10.514, 40.899)
ctx.quadraticCurveTo(9.048, 42.339, 6.99, 42.339)
ctx.lineTo(6.99, 42.339)
ctx.lineTo(6.99, 42.339)
ctx.quadraticCurveTo(4.932, 42.339, 3.466, 40.899)
ctx.lineTo(3.466, 40.899)
ctx.lineTo(3.466, 40.899)
ctx.quadraticCurveTo(2, 39.459, 2, 37.401)
ctx.lineTo(2, 37.401)
ctx.lineTo(2, 37.401)
ctx.quadraticCurveTo(2, 35.343, 3.466, 33.877)
ctx.lineTo(3.466, 33.877)
ctx.lineTo(3.466, 33.877)
ctx.quadraticCurveTo(4.932, 32.411, 6.99, 32.411)
ctx.lineTo(6.99, 32.411)
ctx.moveTo(4.99, 32.411)
ctx.lineTo(4.99, 32.411)
ctx.quadraticCurveTo(7.048, 32.411, 8.514, 33.877)
ctx.lineTo(8.514, 33.877)
ctx.lineTo(8.514, 33.877)
ctx.quadraticCurveTo(9.98, 35.343, 9.98, 37.401)
ctx.lineTo(9.98, 37.401)
ctx.lineTo(9.98, 37.401)
ctx.quadraticCurveTo(9.98, 39.459, 8.514, 40.899)
ctx.lineTo(8.514, 40.899)
ctx.lineTo(8.514, 40.899)
ctx.quadraticCurveTo(7.048, 42.339, 4.99, 42.339)
ctx.lineTo(4.99, 42.339)
ctx.lineTo(4.99, 42.339)
ctx.quadraticCurveTo(2.932, 42.339, 1.466, 40.899)
ctx.lineTo(1.466, 40.899)
ctx.lineTo(1.466, 40.899)
ctx.quadraticCurveTo(0, 39.459, 0, 37.401)
ctx.lineTo(0, 37.401)
ctx.lineTo(0, 37.401)
ctx.quadraticCurveTo(0, 35.343, 1.466, 33.877)
ctx.lineTo(1.466, 33.877)
ctx.lineTo(1.466, 33.877)
ctx.quadraticCurveTo(2.932, 32.411, 4.99, 32.411)
ctx.lineTo(4.99, 32.411)
ctx.closePath()
ctx.stroke()
ctx.fill()
......@@ -130,7 +130,7 @@ const drawIcon = async tabId => {
const ctx = canvas.getContext('2d')
ctx.strokeStyle = colors.outline
ctx.lineWidth = 6
ctx.lineWidth = 2
const resolverIconColor = await getResolverIconColor()
......@@ -147,7 +147,6 @@ const updateIcon = async () => {
const tabId = await getActiveTabId()
browser.browserAction.setIcon({ imageData: await drawIcon(tabId) })
const count = await storage('tabCounters', 'get', { id: tabId })
console.log('COUNT', count)
if (count === undefined || count === 0) {
browser.browserAction.setBadgeText({ text: '' })
} else {
......
......@@ -52,6 +52,7 @@ const processRequest = async requestDetails => {
}
}
const rStarted = requestDetails => console.log(requestDetails.url, requestDetails.ip)
// const rStarted = requestDetails => console.log(requestDetails.url, requestDetails.ip)
export { processRequest, rStarted }
// export { processRequest, rStarted }
export { processRequest }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment