summaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
Diffstat (limited to 'p')
-rw-r--r--p/api/pshb.php2
-rw-r--r--p/scripts/main.js2
-rw-r--r--p/scripts/statsWithChartjs.js4
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: {