aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/popup
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/popup')
-rw-r--r--src/pages/popup/popup.ejs4
-rw-r--r--src/pages/popup/popup.js3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/pages/popup/popup.ejs b/src/pages/popup/popup.ejs
index efb73e5c..5b3bb026 100644
--- a/src/pages/popup/popup.ejs
+++ b/src/pages/popup/popup.ejs
@@ -8,13 +8,13 @@
</head>
<body dir="auto">
<div class="current_site">
- <%- include('src/pages/widgets/switches', {config: config}) -%>
+ <%- include('src/pages/widgets/switches', {config: {networks, services}}) -%>
<div id="current_site_divider">
<hr>
</div>
</div>
<div class="all_sites">
- <%- include('src/pages/widgets/switches', {config: config}) -%>
+ <%- include('src/pages/widgets/switches', {config: {networks, services}}) -%>
</div>
<hr>
<div class="some-block" id="change_instance_div"><a class="title button prevent" id="change_instance">
diff --git a/src/pages/popup/popup.js b/src/pages/popup/popup.js
index fce451cb..c28f2d94 100644
--- a/src/pages/popup/popup.js
+++ b/src/pages/popup/popup.js
@@ -27,8 +27,7 @@ async function getConfig() {
fetch("/config/config.json")
.then(response => response.text())
.then(data => {
- const tmp = JSON.parse(data)
- config = tmp.config
+ config = JSON.parse(data)
resolve()
})
})