diff options
| author | 2022-01-08 16:25:17 +0100 | |
|---|---|---|
| committer | 2022-01-08 16:25:17 +0100 | |
| commit | 916df412f5b6f7fb9bcfb705a3c8c23e35304410 (patch) | |
| tree | d87c483688575cb5a6b674849e2aefa2052116c8 /p | |
| parent | 127b7f0a3aad7012055c058e8aba0d27192a8cbc (diff) | |
Fix various typos and spelling errors in documentation, comments and code. (#4134)
Diffstat (limited to 'p')
| -rw-r--r-- | p/api/pshb.php | 2 | ||||
| -rw-r--r-- | p/scripts/main.js | 2 | ||||
| -rw-r--r-- | p/scripts/statsWithChartjs.js | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/p/api/pshb.php b/p/api/pshb.php index c2436d0ff..9170c1025 100644 --- a/p/api/pshb.php +++ b/p/api/pshb.php @@ -74,7 +74,7 @@ if (!empty($_REQUEST['hub_mode']) && $_REQUEST['hub_mode'] === 'subscribe') { } $hubJson['lease_start'] = time(); if (!isset($hubJson['error'])) { - $hubJson['error'] = true; //Do not assume that WebSub works until the first successul push + $hubJson['error'] = true; //Do not assume that WebSub works until the first successful push } file_put_contents('./!hub.json', json_encode($hubJson)); header('Connection: close'); diff --git a/p/scripts/main.js b/p/scripts/main.js index 21420872f..ca3bb2b9d 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1005,7 +1005,7 @@ function init_stream(stream) { } el = ev.target.closest('.item.title > a'); - if (el) { // Allow default control-click behaviour such as open in backround-tab + if (el) { // Allow default control-click behaviour such as open in background-tab return ev.ctrlKey; } diff --git a/p/scripts/statsWithChartjs.js b/p/scripts/statsWithChartjs.js index 2f5c39ce8..82887226f 100644 --- a/p/scripts/statsWithChartjs.js +++ b/p/scripts/statsWithChartjs.js @@ -27,7 +27,7 @@ function initCharts() { chartConfig = jsonChartDoughnut(jsonDataParsed.labels, jsonDataParsed.data); break; case 'barWithAverage': - chartConfig = jsonChartBarWithAvarage(jsonDataParsed.labelBarChart, jsonDataParsed.dataBarChart, + chartConfig = jsonChartBarWithAverage(jsonDataParsed.labelBarChart, jsonDataParsed.dataBarChart, jsonDataParsed.labelAverage, jsonDataParsed.dataAverage, jsonDataParsed.xAxisLabels); } @@ -114,7 +114,7 @@ function jsonChartDoughnut(labels, data) { }; } -function jsonChartBarWithAvarage(labelBarChart, dataBarChart, labelAverage, dataAverage, xAxisLabels = '') { +function jsonChartBarWithAverage(labelBarChart, dataBarChart, labelAverage, dataAverage, xAxisLabels = '') { return { type: 'bar', data: { |
