Skip to content

Commit df90b80

Browse files
committed
Remove deprecate function cleanStorage
1 parent 8cbe15a commit df90b80

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/script.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function transactionInit(transactionBody) {
8282
}
8383
}
8484

85-
export function isMobileDevice() {
85+
function isMobileDevice() {
8686
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
8787

8888
// List of common mobile devices and user agents
@@ -101,11 +101,6 @@ export function isMobileDevice() {
101101
return false;
102102
}
103103

104-
function cleanLocalStorage(){
105-
this.localStorage.removeItem("config");
106-
this.localStorage.removeItem("site");
107-
}
108-
109104
/**
110105
* Main function to initialize and validate the authentication process (ONLY FOR DEVELOPMENT).
111106
* @async
@@ -218,4 +213,3 @@ document.addEventListener("DOMContentLoaded", () => {
218213
window.main = main;
219214
window.run = run;
220215
window.start = start;
221-
window.isMobileDevice = isMobileDevice;

0 commit comments

Comments
 (0)