Skip to content

Commit

Permalink
Update index.md (mdn#26744)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenboox authored and HannahPeuckmann committed May 15, 2023
1 parent a60746f commit 704cffc
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 704cffc

Please sign in to comment.