Skip to content

Commit 043460c

Browse files
author
hoang.tran12
committed
remove unused code
1 parent d47ee16 commit 043460c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/smoothScroll.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -851,16 +851,16 @@ export function run() {
851851
/**
852852
* Initializes the image at the reference point.
853853
*/
854-
function init() {
855-
let url = chrome.runtime.getURL("../img/cursor.png");
856-
let style = img.style;
857-
style.background = "url(" + url + ") no-repeat";
858-
style.position = "fixed";
859-
style.zIndex = "1000";
860-
style.width = "20px";
861-
style.height = "20px";
862-
new Image().src = url; // force download
863-
}
854+
// function init() {
855+
// let url = chrome.runtime.getURL("../img/cursor.png");
856+
// let style = img.style;
857+
// style.background = "url(" + url + ") no-repeat";
858+
// style.position = "fixed";
859+
// style.zIndex = "1000";
860+
// style.width = "20px";
861+
// style.height = "20px";
862+
// new Image().src = url; // force download
863+
// }
864864
/**
865865
* Removes event listeners and other traces left on the page.
866866
*/
@@ -971,7 +971,7 @@ export function run() {
971971
};
972972
})();
973973
addEvent("mousedown", mousedown);
974-
addEvent("DOMContentLoaded", init);
974+
// addEvent("DOMContentLoaded", init);
975975

976976
return cleanup;
977977
})(window);

0 commit comments

Comments
 (0)