MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / saveScroll

Function saveScroll

popup/index.js:1173–1176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1171}
1172
1173function saveScroll() {
1174 const scrollY = window.scrollY;
1175 Storage.set("popupScrollY", scrollY);
1176}
1177
1178function restoreScroll() {
1179 Storage.get("popupScrollY", 0).then((value) => {

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected