Skip to content

Commit

Permalink
1.2.1: fix a serious problem
Browse files Browse the repository at this point in the history
  • Loading branch information
cnwangjie committed Aug 13, 2018
1 parent 1293b75 commit 1225f16
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
30 changes: 26 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- run: yarn build
- save_cache:
key: build-{{ .Environment.CIRCLE_SHA1 }}
paths: ~/ext/dist.zip
paths: ~/ext

publish:
publish_chrome:
docker:
- image: circleci/node:8.11.3-jessie
working_directory: ~/ext
Expand All @@ -43,6 +43,20 @@ jobs:
export PATH="$PATH:$HOME/.config/yarn/global/node_modules/.bin"
webstore upload --source dist.zip --extension-id $EXTENSION_ID --auto-publish
publish_firefox:
docker:
- image: circleci/node:8.11.3-jessie
working_directory: ~/ext
steps:
- restore_cache:
key: build-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: publish
command: |
yarn global add webext@1.9.1-with-submit.1
export PATH="$PATH:$HOME/.config/yarn/global/node_modules/.bin"
webext submit --api-key=${FF_API_KEY} --api-secret=${FF_API_SECRET} --id=${FF_ID} -s dist
release:
docker:
- image: circleci/golang:1.9
Expand Down Expand Up @@ -77,7 +91,15 @@ workflows:
filters:
tags:
only: /^v.*/
- publish:
- publish_chrome:
requires:
- build
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- publish_firefox:
requires:
- build
filters:
Expand All @@ -87,7 +109,7 @@ workflows:
ignore: /.*/
- release:
requires:
- publish
- publish_chrome
filters:
tags:
only: /^v.*/
Expand Down
4 changes: 2 additions & 2 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const setupContextMenus = async pageContext => {
}
}
createMenus(menus)
window.contextMenusClickedHandler = info => _.get(menus, info.menuItemId)
window.contextMenusClickedHandler = info => _.get(menus, info.menuItemId)()
}

const dynamicDisableMenu = async () => {
Expand Down Expand Up @@ -118,7 +118,7 @@ const init = async () => {
if (changes.browserAction) updateBrowserAction(changes.browserAction)
if ('pageContext' in changes) await setupContextMenus(changes.pageContext)
await browser.runtime.sendMessage({optionsChangeHandledStatus: 'success'})
if (PRODUCTION) Object.keys(changes).map(key => ga('send', 'event', 'Options', key, changes[key]))
if (PRODUCTION) Object.keys(changes).map(key => ga('send', 'event', 'Options', key + ':' + changes[key]))
}
if (msg.restoreList) {
const restoreList = msg.restoreList
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__MSG_ext_name__",
"version": "1.2.0",
"version": "1.2.1",
"default_locale": "en",
"description": "__MSG_ext_desc__",
"author": "WangJie <doudou19758@gmail.com>",
Expand Down

0 comments on commit 1225f16

Please sign in to comment.