mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 11:07:59 +01:00
Whitespace fixes.
--HG-- extra : rebase_source : 767c3a15afc7917a5f6585417c8edcd45b67f0b1
This commit is contained in:
@@ -1046,11 +1046,11 @@ const Hints = Module("hints", {
|
|||||||
[0xff21, 0xff3a, "A"], [0xff41, 0xff5a, "a"]
|
[0xff21, 0xff3a, "A"], [0xff41, 0xff5a, "a"]
|
||||||
].forEach(function (start, stop, val) {
|
].forEach(function (start, stop, val) {
|
||||||
if (typeof val != "string")
|
if (typeof val != "string")
|
||||||
for (let i=start; i <= stop; i++)
|
for (let i = start; i <= stop; i++)
|
||||||
table[String.fromCharCode(i)] = val[(i - start) % val.length];
|
table[String.fromCharCode(i)] = val[(i - start) % val.length];
|
||||||
else {
|
else {
|
||||||
let n = val.charCodeAt(0);
|
let n = val.charCodeAt(0);
|
||||||
for (let i=start; i <= stop; i++)
|
for (let i = start; i <= stop; i++)
|
||||||
table[String.fromCharCode(i)] = String.fromCharCode(n + i - start);
|
table[String.fromCharCode(i)] = String.fromCharCode(n + i - start);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user