mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
6 lines
366 B
JavaScript
6 lines
366 B
JavaScript
// I know that this is legacy feature provided by CCLoader way back when mods
|
|
// weren't executed inside the game iframe's context, but it is useful
|
|
// nevertheless because console in Chrome's devtools automatically selects
|
|
// window.top as the execution context by default, so writing `cc.` is faster
|
|
// than `modloader.frame.contentWindow`
|
|
window.top.cc = window;
|