diff options
Diffstat (limited to 'src/components/services/PiHole.vue')
-rw-r--r-- | src/components/services/PiHole.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/services/PiHole.vue b/src/components/services/PiHole.vue index 237cb12..b111456 100644 --- a/src/components/services/PiHole.vue +++ b/src/components/services/PiHole.vue | |||
@@ -52,8 +52,9 @@ export default { | |||
52 | const authQueryParams = this.item.apikey | 52 | const authQueryParams = this.item.apikey |
53 | ? `?summaryRaw&auth=${this.item.apikey}` | 53 | ? `?summaryRaw&auth=${this.item.apikey}` |
54 | : ""; | 54 | : ""; |
55 | const result = await this.fetch(`/api.php${authQueryParams}`) | 55 | const result = await this.fetch(`/api.php${authQueryParams}`).catch((e) => |
56 | .catch((e) => console.log(e)); | 56 | console.log(e), |
57 | ); | ||
57 | 58 | ||
58 | this.status = result.status; | 59 | this.status = result.status; |
59 | this.ads_percentage_today = result.ads_percentage_today; | 60 | this.ads_percentage_today = result.ads_percentage_today; |