Skip to content

Commit

Permalink
Merge pull request splunk#9 from ziegfried/setup-page-fix
Browse files Browse the repository at this point in the history
fix broken setup page
  • Loading branch information
ziegfried authored Jun 19, 2020
2 parents 3b93481 + 3ff769c commit ae7b396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/pages/slack_alerts_setup/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export function makeUrl(path) {
return `${MRSPARKLE_ROOT_PATH || ''}/${LOCALE}${path}`;
}

function getFormKey() {
export function getFormKey() {
const prefix = `splunkweb_csrf_token_${window.$C.MRSPARKLE_PORT_NUMBER}=`;
if (document.cookie) {
for (const chunk of document.cookie.split(';')) {
Expand All @@ -15,7 +15,7 @@ function getFormKey() {
}
}

const eq = (a, b) => {
export const eq = (a, b) => {
const ka = Object.keys(a);
const kb = Object.keys(b);
return ka.length === kb.length && ka.every((k) => k in b && a[k] === b[k]);
Expand Down

0 comments on commit ae7b396

Please sign in to comment.