Skip to content

Commit e5b9805

Browse files
authored
Merge pull request #105 from dimadidr/feature/335114-missing-content-ios
Fix missing content issue
2 parents 61eb72a + df2e285 commit e5b9805

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

skin/frontend/base/default/js/catalin_seo/handler-ee-rwd.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,11 @@ var CatalinSeoHandler = {
206206
History.Adapter.bind(window, 'popstate', function (event) {
207207
if (event.type == 'popstate') {
208208
var State = History.getState();
209-
$('catalog-listing').update(State.data.listing);
210-
$$('.block-layered-nav')[0].replace(State.data.layer);
209+
// don't update blocks if data is undefined
210+
if (typeof State.data.listing != 'undefined' && typeof State.data.layer != 'undefined') {
211+
$('catalog-listing').update(State.data.listing);
212+
$$('.block-layered-nav')[0].replace(State.data.layer);
213+
}
211214
self.ajaxListener();
212215
self.toggleContent();
213216
self.alignProductGridActions();

0 commit comments

Comments
 (0)