Skip to content

Commit

Permalink
fix: ms onenote export issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shuowu committed Nov 26, 2020
1 parent 740ad16 commit 32c902e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.5.4

### Bug fixes

- Fixes MS OneNote export issue

## 1.5.3

### Bug fixes
Expand Down
3 changes: 3 additions & 0 deletions packages/browser-extension-oauth2/src/Oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class Oauth2 {
if (params.state !== state) {
throw new Error('Invalid state.');
}
if (params.error) {
throw new Error(params.error);
}
return this.storage
.set(ACESS_TOKEN_KEY, accessToken)
.then(() => accessToken);
Expand Down
2 changes: 1 addition & 1 deletion packages/common/services/integration/onenote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class OneNote extends Service {
const clientId =
manifest.browser === 'firefox'
? '5a06bf8d-6526-4b65-a85b-221f6dde2639'
: 'ab2e71d8-340a-4889-8039-26b70504871c';
: '24fa7402-009b-4526-b067-e6de468fbcc0';
this.oauth2 = new Oauth2({
provider: this.namespace,
authorization_endpoint:
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/manifest.common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "YiNote",
"version": "1.5.3",
"version": "1.5.4",
"description": "Most efficient way to take & share time-stamped notes while watching videos!",
"icons": {
"16": "icons/icon-16.png",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yi-note/extension",
"version": "1.5.3",
"version": "1.5.4",
"description": "Most efficient way to take & share time-stamped notes while watching videos!",
"private": false,
"keywords": [
Expand Down

0 comments on commit 32c902e

Please sign in to comment.