Skip to content

Commit

Permalink
Update specification/window.browser.bs
Browse files Browse the repository at this point in the history
Co-authored-by: Rob Wu <[email protected]>
  • Loading branch information
patrickkettner and Rob--W authored Nov 7, 2024
1 parent a154385 commit 625374c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion specification/window.browser.bs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
// modifying one top level values will not change the other

globalThis.browser.FAKE = true
console.log(globalThis.chrome.FAKE); //undefined
console.log(globalThis.chrome.FAKE);
// ^ undefined when chrome and browser are not direct aliases.
// ^ may be true if browser === chrome.

// Individual properties are aliased, so updating a known property
// directly changes the matching property on the other
Expand Down

0 comments on commit 625374c

Please sign in to comment.