Skip to content

Commit

Permalink
MWPW-161195 Reload page if going backward (#910)
Browse files Browse the repository at this point in the history
* Reload page if going back forward

* Remove comment
  • Loading branch information
TsayAdobe authored Dec 6, 2024
1 parent 8d62f2d commit 5c07c49
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,14 @@ export default async function init(element) {
handleError(e.detail, true, lanaOptions);
verbAnalytics('error', VERB);
}
});

// acrobat:verb-fillsign:error:page_count_missing_from_metadata_api
// acrobat:verb-fillsign:error:403
// LANA for 403
window.addEventListener('pageshow', (event) => {
const historyTraversal = event.persisted
|| (typeof window.performance !== 'undefined'
&& window.performance.getEntriesByType('navigation')[0].type === 'back_forward');
if (historyTraversal) {
window.location.reload();
}
});
}

0 comments on commit 5c07c49

Please sign in to comment.