Skip to content

Commit

Permalink
Update taskpane.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 7, 2024
1 parent c037a31 commit 0fbb4d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/word-plugin/src/taskpane/taskpane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/* global document, Office, Word */

const addinVersion = "1.1";
const addinVersion = "1.2";

Office.onReady((info) => {
if (info.host === Office.HostType.Word) {
Expand Down Expand Up @@ -44,9 +44,9 @@ export async function run1() {
const paragraphs = context.document.body.paragraphs;

// load text
//paragraphs.load("$all");
paragraphs.load(["text", "items"]);
await context.sync();
paragraphs.load("$all");
//paragraphs.load(["text", "items"]);
await paragraphs.context.sync();

document.getElementById("progressbar").style.width = "10%";

Expand Down

0 comments on commit 0fbb4d6

Please sign in to comment.