Skip to content

Commit

Permalink
Fix visualization CORS error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwinator committed Aug 31, 2023
1 parent 9c66951 commit 944a4af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aw-watcher-utilization"
version = "1.2.1"
version = "1.2.2"
description = "An Activity Watch watcher which monitors CPU, RAM, GPU and disk usage."
authors = ["Alwin Schuster"]
license = "MPL-2.0"
Expand Down
2 changes: 1 addition & 1 deletion visualization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
const hostname = urlParams.get('hostname');
const title = urlParams.get('title') || 'cpu_percent';

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

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

0 comments on commit 944a4af

Please sign in to comment.