refactor: move actions from app header to app footer

This commit is contained in:
Liyas Thomas
2021-07-23 18:28:07 +00:00
committed by GitHub
parent f694f1ad36
commit 233214cb30
35 changed files with 222 additions and 278 deletions

View File

@@ -36,7 +36,7 @@ export default function getEnvironmentVariablesFromScript(script: string) {
// run pre-request script within this function so that it has access to the pw object.
// eslint-disable-next-line no-new-func
new Function("pw", script)(pw)
} catch (_e) { }
} catch (_e) {}
return _variables
}

View File

@@ -11,3 +11,7 @@ export const knownContentTypes = {
}
export type ValidContentTypes = keyof typeof knownContentTypes
export function isJSONContentType(contentType: string) {
return /\bjson\b/i.test(contentType)
}