Skip to content

Commit ecd29c8

Browse files
committed
refactor: update index variable
1 parent f13a950 commit ecd29c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/wwwroot/modules/utility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ export function isMobile() {
670670
const hashCode = str => {
671671
let hash = 0;
672672
for (let i = 0; i < str.length; i++) {
673-
const char = str.charCodeAt(1);
673+
const char = str.charCodeAt(i);
674674
hash = (hash << 5) - hash + char;
675675
hash |= 0;
676676
}

0 commit comments

Comments
 (0)