File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,15 @@ export default {
162
162
const authenticated = await this .authenticate ();
163
163
if (! authenticated) return ;
164
164
}
165
- const summary_response = await this .fetch (
166
- ` api/stats/summary?sid=${ encodeURIComponent (this .sessionId )} ` ,
167
- );
168
165
169
- const status_response = await this .fetch (
170
- ` api/dns/blocking?sid=${ encodeURIComponent (this .sessionId )} ` ,
171
- );
166
+ const [summary_response , status_response ] = await Promise .all ([
167
+ this .fetch (
168
+ ` api/stats/summary?sid=${ encodeURIComponent (this .sessionId )} `
169
+ ),
170
+ this .fetch (
171
+ ` api/dns/blocking?sid=${ encodeURIComponent (this .sessionId )} `
172
+ )
173
+ ]);
172
174
173
175
if (
174
176
summary_response? .queries ? .percent_blocked === undefined ||
You can’t perform that action at this time.
0 commit comments