Skip to content

Commit 944a4af

Browse files
committed
Fix visualization CORS error
1 parent 9c66951 commit 944a4af

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aw-watcher-utilization"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
description = "An Activity Watch watcher which monitors CPU, RAM, GPU and disk usage."
55
authors = ["Alwin Schuster"]
66
license = "MPL-2.0"

visualization/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
const hostname = urlParams.get('hostname');
3838
const title = urlParams.get('title') || 'cpu_percent';
3939

40-
const client = new AWClient('test-client', {testing: window.location.port === "5666"});
40+
const client = new AWClient('test-client', {baseURL: window.location.origin});
4141

4242
function avg(arr) {
4343
return arr.reduce((a, b) => a + b, 0) / arr.length;

0 commit comments

Comments
 (0)