Skip to content

Commit

Permalink
refactor: allow soft and hard reset
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Sep 8, 2024
1 parent aec04cd commit 141bb39
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/iframemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,16 +887,14 @@
getConfig: () => config,

/**
* @param {bool} [eraseCookies]
* @param {bool} [hardReset]
*/
reset: (eraseCookies) => {
for (const service of serviceNames) {
if (eraseCookies) {
api.rejectService(service);
}

for (const serviceDiv of allServiceProps[service]) {
resetDiv(serviceDiv._div);
reset: (hardReset) => {
if (hardReset) {
for (const service of serviceNames) {
for (const serviceDiv of allServiceProps[service]) {
resetDiv(serviceDiv._div);
}
}
}

Expand Down

0 comments on commit 141bb39

Please sign in to comment.