✨ Adds Mullvad and IP blacklist check widgets
This commit is contained in:
@@ -20,6 +20,7 @@ const WidgetMixin = {
|
||||
overrideUpdateInterval: null,
|
||||
disableLoader: false, // Prevent ever showing the loader
|
||||
updater: null, // Stores interval
|
||||
defaultTimeout: 1000,
|
||||
}),
|
||||
/* When component mounted, fetch initial data */
|
||||
mounted() {
|
||||
@@ -106,7 +107,7 @@ const WidgetMixin = {
|
||||
const CustomHeaders = options || null;
|
||||
const headers = this.useProxy
|
||||
? { 'Target-URL': endpoint, CustomHeaders: JSON.stringify(CustomHeaders) } : CustomHeaders;
|
||||
const timeout = this.options.timeout || 500;
|
||||
const timeout = this.options.timeout || this.defaultTimeout;
|
||||
const requestConfig = {
|
||||
method, url, headers, data, timeout,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user