A11yWatch/a11ywatch-core

View on GitHub
src/web/routes/services/crawler/get-params.ts

Summary

Maintainability
A
0 mins
Test Coverage
// get the params from the active crawl
export const getParams = (data) => {
  return data && typeof data == "string"
    ? JSON.parse(data)
    : { domain: undefined, user_id: undefined };
};