Skip to content

Commit

Permalink
Update index.md (#26744)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenboox authored May 12, 2023
1 parent 464084c commit 977af6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/adoptedstylesheets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ This is demonstrated below using spread-syntax:

```js
const extraSheet = new CSSStyleSheet();
sheet.replaceSync("p { color: green; }");
extraSheet.replaceSync("p { color: green; }");

// Combine the existing sheets and new one
document.adoptedStyleSheets = [...document.adoptedStyleSheets, extraSheet];
Expand Down

0 comments on commit 977af6e

Please sign in to comment.