Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Initialize the Browser Action and set some settings #57

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

petemill
Copy link
Member

@petemill petemill commented Aug 26, 2018

Fix brave/brave-browser#844
Fix brave/brave-browser#503
Address brave/brave-browser#668

Shields on
image

Shields off
image

Shields disabled (webui page)
image

- Badge color
- Higher resolution (vector) icon
  (Fix brave/brave-browser#844)
- Badge displays '99+' when block count is > 99
- Shields are disabled for non-http(s) sites
  (Fix brave/brave-browser#503)
- Default icon before a tab loads is the shields-on icon
- Set shields badge count for active tab only
  (Fix brave/brave-browser#743)

Address some features of brave/brave-browser#668
Copy link
Contributor

@cezaraugusto cezaraugusto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@@ -13,72 +13,71 @@ describe('BrowserAction API', () => {
before(function () {
this.spy = sinon.spy(chrome.browserAction, 'setBadgeText')
this.text = '42'
browserActionAPI.setBadgeText(this.text)
this.tabId = 1337
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1337

@cezaraugusto cezaraugusto merged commit 2ea4ff3 into brave:master Aug 28, 2018
@petemill petemill deleted the browser-action-settings branch August 28, 2018 02:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants