Skip to content
Snippets Groups Projects
Unverified Commit ff7db79b authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Replace deprecated `unescape` function in a Cypress helper (#38252)

parent 3179ab12
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ export function adhocQuestionHash(question) {
// without "locking" the display, the QB will run its picking logic and override the setting
question = Object.assign({}, question, { displayIsLocked: true });
}
return btoa(unescape(encodeURIComponent(JSON.stringify(question))));
return btoa(decodeURIComponent(encodeURIComponent(JSON.stringify(question))));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment