Skip to content

Commit

Permalink
fix(controller/search): fixing eventListener typo from 'remove' -> 'add'
Browse files Browse the repository at this point in the history
  • Loading branch information
korgon committed Dec 18, 2023
1 parent aa3d447 commit c66ae1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/snap-controller/src/Search/SearchController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class SearchController extends AbstractController {

// fire restorePosition event on 'pageshow' when setting is enabled
if (this.config.settings?.restorePosition?.onPageShow) {
window.removeEventListener('pageshow', () => {
window.addEventListener('pageshow', () => {
this.eventManager.fire('restorePosition', { controller: this, element: {} });
});
}
Expand Down

0 comments on commit c66ae1d

Please sign in to comment.