Skip to content

Commit c8e6c93

Browse files
committed
native function
1 parent bb8e8c3 commit c8e6c93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/utils/local/cleanup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function killHttpMicroservice(microservice) {
3939
const failMessage = `Failed to kill ${microservice.name}`;
4040
async function do_kill() {
4141
try {
42-
await $fetch(microservice.url, {
42+
const fetchFunc = typeof $fetch === "undefined" ? fetch : $fetch;
43+
await fetchFunc(microservice.url, {
4344
method: microservice.method,
4445
});
4546
} catch (error) {

0 commit comments

Comments
 (0)