We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8e8c3 commit c8e6c93Copy full SHA for c8e6c93
1 file changed
app/utils/local/cleanup.js
@@ -39,7 +39,8 @@ function killHttpMicroservice(microservice) {
39
const failMessage = `Failed to kill ${microservice.name}`;
40
async function do_kill() {
41
try {
42
- await $fetch(microservice.url, {
+ const fetchFunc = typeof $fetch === "undefined" ? fetch : $fetch;
43
+ await fetchFunc(microservice.url, {
44
method: microservice.method,
45
});
46
} catch (error) {
0 commit comments