Skip to content

Commit 4667937

Browse files
committed
typo in the function name correction
1 parent 369d887 commit 4667937

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
"ts-jest": "^26.4.1",
6969
"ts-loader": "^8.0.5",
7070
"typescript": "^4.0.3",
71+
"webextension-polyfill-ts": "^0.26.0",
7172
"webpack": "^5.65.0",
7273
"webpack-cli": "^4.9.1",
7374
"webpack-merge": "^5.8.0"
7475
},
7576
"dependencies": {
7677
"react": "^17.0.2",
77-
"react-dom": "^17.0.2",
78-
"webextension-polyfill-ts": "^0.26.0"
78+
"react-dom": "^17.0.2"
7979
}
8080
}

src/popup/component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import css from "./styles.module.css";
1010
const scrollToTopPosition = 0;
1111
const scrollToBottomPosition = 9999999;
1212

13-
function greetUser(position: number) {
13+
function scrollWindow(position: number) {
1414
window.scroll(0,position);
1515
}
1616

@@ -38,7 +38,7 @@ function executeScript(position: number): void {
3838
target: {
3939
tabId: currentTabId
4040
},
41-
func: greetUser,
41+
func: scrollWindow,
4242
args: [position]
4343
})
4444
.then(() => {

0 commit comments

Comments
 (0)