mirror of
https://git.steelants.cz/JonatanRek/VUE_GabenParadise.git
synced 2026-10-12 03:34:33 +00:00
Initial Commit
This commit is contained in:
commit
452829f0e1
3410 files changed
+523857
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
var realFetch = require('node-fetch');
|
||||
module.exports = function(url, options) {
|
||||
if (/^\/\//.test(url)) {
|
||||
url = 'https:' + url;
|
||||
}
|
||||
return realFetch.call(this, url, options);
|
||||
};
|
||||
|
||||
if (!global.fetch) {
|
||||
global.fetch = module.exports;
|
||||
global.Response = realFetch.Response;
|
||||
global.Headers = realFetch.Headers;
|
||||
global.Request = realFetch.Request;
|
||||
}
|
||||
Reference in new issue
Block a user