Skip to content

Commit 431c010

Browse files
authored
Merge pull request #29 from OneNoteDev/replace-beta
no longer using beta for getNotebookFromWebUrl
2 parents bb22741 + 8aee72f commit 431c010

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.0.11",
2+
"version": "2.0.12",
33
"name": "onenoteapi",
44
"description": "JavaScript library to make calling the OneNote API easier.",
55
"main": "dist/OneNoteApi.js",

src/scripts/oneNoteApi.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ export class OneNoteApi extends OneNoteApiBase implements IOneNoteApi {
7575
webUrl: notebookWebUrl
7676
};
7777

78-
const oldUseBetaApi = this.useBetaApi;
79-
this.useBetaApi = true; // This API is only supported in beta
8078
const returnValue = this.requestPromise(url, JSON.stringify(payload));
81-
this.useBetaApi = oldUseBetaApi;
8279
return returnValue;
8380
}
8481

0 commit comments

Comments
 (0)