diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-12-27 12:40:49 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2022-12-27 12:50:57 +0100 |
commit | 262a90b0e03da1ddf0b6ac5acd55a3167c4b558d (patch) | |
tree | cf87bfbaae241c8899ceaa254ec100f0f2d713ee | |
parent | 7f4a9eebc865a627407e69f22a5de18454cde6df (diff) | |
download | novnc-262a90b0e03da1ddf0b6ac5acd55a3167c4b558d.tar.gz |
Consistently use "first" indentation
We already enforced this for most things, so let's fix up the last few
variants as well.
-rw-r--r-- | .eslintrc | 3 | ||||
-rw-r--r-- | app/webutil.js | 4 | ||||
-rw-r--r-- | core/des.js | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -26,10 +26,13 @@ "brace-style": ["error", "1tbs", { "allowSingleLine": true }], "indent": ["error", 4, { "SwitchCase": 1, + "VariableDeclarator": "first", "FunctionDeclaration": { "parameters": "first" }, + "FunctionExpression": { "parameters": "first" }, "CallExpression": { "arguments": "first" }, "ArrayExpression": "first", "ObjectExpression": "first", + "ImportDeclaration": "first", "ignoreComments": true }], "comma-spacing": ["error"], "comma-style": ["error"], diff --git a/app/webutil.js b/app/webutil.js index d42b7f2..084c69f 100644 --- a/app/webutil.js +++ b/app/webutil.js @@ -32,7 +32,7 @@ export function initLogging(level) { export function getQueryVar(name, defVal) { "use strict"; const re = new RegExp('.*[?&]' + name + '=([^&#]*)'), - match = ''.concat(document.location.href, window.location.hash).match(re); + match = ''.concat(document.location.href, window.location.hash).match(re); if (typeof defVal === 'undefined') { defVal = null; } if (match) { @@ -46,7 +46,7 @@ export function getQueryVar(name, defVal) { export function getHashVar(name, defVal) { "use strict"; const re = new RegExp('.*[&#]' + name + '=([^&]*)'), - match = document.location.hash.match(re); + match = document.location.hash.match(re); if (typeof defVal === 'undefined') { defVal = null; } if (match) { diff --git a/core/des.js b/core/des.js index d2f807b..ba1ebde 100644 --- a/core/des.js +++ b/core/des.js @@ -81,7 +81,7 @@ const PC2 = [13,16,10,23, 0, 4, 2,27,14, 5,20, 9,22,18,11, 3, 25, 7,15, 6,26,19,12, 1,40,51,30,36,46,54,29,39, 50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31 ], - totrot = [ 1, 2, 4, 6, 8,10,12,14,15,17,19,21,23,25,27,28]; + totrot = [ 1, 2, 4, 6, 8,10,12,14,15,17,19,21,23,25,27,28]; const z = 0x0; let a,b,c,d,e,f; |