Skip to content
Permalink
Browse files

Added default/blank headers for TV requests

  • Loading branch information...
Chris Turk
Chris Turk committed Feb 28, 2019
1 parent 1c4bbd2 commit 078a0c97b9a09a764d962c14ee14829adb72a6f0
@@ -1,6 +1,10 @@
// eslint-disable-next-line no-unused-vars
let userApiKey;
let ViewHeaders;
let ViewHeaders = new Headers([
[`X-VIEW-KEY`, `UNSET`],
[`X-APP-KEY`, `MTurk Suite`],
[`X-APP-VER`, chrome.runtime.getManifest().version] //SemVer
]);

chrome.storage.local.get([`options`], keys => {
userApiKey = (keys.options.turkerviewApiKey) ? keys.options.turkerviewApiKey : ``;
@@ -200,7 +200,11 @@ function hitDataPopover(button, hit, reward, status = `ok`) {


let userApiKey;
let ViewHeaders;
let ViewHeaders = new Headers([
[`X-VIEW-KEY`, `UNSET`],
[`X-APP-KEY`, `MTurk Suite`],
[`X-APP-VER`, chrome.runtime.getManifest().version] //SemVer
]);
let HitData;

chrome.storage.local.get([`options`], keys => {
@@ -226,7 +226,11 @@ async function initHitReview(){
}

let taskuserApiKey;
let taskViewHeaders;
let taskViewHeaders = new Headers([
[`X-VIEW-KEY`, `UNSET`],
[`X-APP-KEY`, `MTurk Suite`],
[`X-APP-VER`, chrome.runtime.getManifest().version] //SemVer
]);

function buildHeaders(userApiKey){
taskViewHeaders = new Headers([
@@ -334,7 +334,11 @@ async function initReturnReviews(){
}

let userApiKey;
let ViewHeaders;
let ViewHeaders = new Headers([
[`X-VIEW-KEY`, `UNSET`],
[`X-APP-KEY`, `MTurk Suite`],
[`X-APP-VER`, chrome.runtime.getManifest().version] //SemVer
]);

function buildHeaders(userApiKey){
ViewHeaders = new Headers([

0 comments on commit 078a0c9

Please sign in to comment.
You can’t perform that action at this time.