Implementação das ações incluir, atualizar e remover apontamentos de horas
This commit is contained in:
@@ -966,9 +966,14 @@ async function executeComcipFetch(tabId, requestUrl, method, payload, headers, r
|
||||
headers: requestHeaders,
|
||||
};
|
||||
|
||||
if (normalizedMethod !== "GET" && normalizedMethod !== "HEAD") {
|
||||
if (
|
||||
normalizedMethod !== "GET" &&
|
||||
normalizedMethod !== "HEAD" &&
|
||||
requestPayload !== undefined &&
|
||||
requestPayload !== null
|
||||
) {
|
||||
requestHeaders["content-type"] = "application/json";
|
||||
fetchOptions.body = JSON.stringify(requestPayload || {});
|
||||
fetchOptions.body = JSON.stringify(requestPayload);
|
||||
}
|
||||
|
||||
const response = await fetch(requestUrl, {
|
||||
@@ -1130,9 +1135,14 @@ async function executeComcipFetchFromFrame(
|
||||
headers: requestHeaders,
|
||||
};
|
||||
|
||||
if (normalizedMethod !== "GET" && normalizedMethod !== "HEAD") {
|
||||
if (
|
||||
normalizedMethod !== "GET" &&
|
||||
normalizedMethod !== "HEAD" &&
|
||||
requestPayload !== undefined &&
|
||||
requestPayload !== null
|
||||
) {
|
||||
requestHeaders["content-type"] = "application/json";
|
||||
fetchOptions.body = JSON.stringify(requestPayload || {});
|
||||
fetchOptions.body = JSON.stringify(requestPayload);
|
||||
}
|
||||
|
||||
const response = await fetch(requestUrl, fetchOptions);
|
||||
@@ -1264,9 +1274,14 @@ async function executeComcipDirectFetch(
|
||||
headers: requestHeaders,
|
||||
};
|
||||
|
||||
if (normalizedMethod !== "GET" && normalizedMethod !== "HEAD") {
|
||||
if (
|
||||
normalizedMethod !== "GET" &&
|
||||
normalizedMethod !== "HEAD" &&
|
||||
payload !== undefined &&
|
||||
payload !== null
|
||||
) {
|
||||
requestHeaders["content-type"] = "application/json";
|
||||
fetchOptions.body = JSON.stringify(payload || {});
|
||||
fetchOptions.body = JSON.stringify(payload);
|
||||
}
|
||||
|
||||
const response = await fetch(requestUrl, fetchOptions);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Arch Panel Injector",
|
||||
"version": "1.0.109",
|
||||
"version": "1.0.119",
|
||||
"description": "Insere o botao Arch panel no header do Oracle Workload Workbench.",
|
||||
"permissions": [
|
||||
"cookies",
|
||||
@@ -153,6 +153,16 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user