Skip to content

Commit

Permalink
Use Object.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Nov 9, 2021
1 parent 2f6685a commit 4b10eb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,8 @@ async function webviewPreloads(ctx: PreloadContext) {
}

// Re-add new properties
for (const variable of Object.keys(event.data.styles)) {
documentStyle.setProperty(`--${variable}`, event.data.styles[variable]);
for (const [name, value] of Object.entries(event.data.styles)) {
documentStyle.setProperty(`--${name}`, value);
}
break;
case 'notebookOptions':
Expand Down

0 comments on commit 4b10eb1

Please sign in to comment.