]> _ Git - fluidbook-html5.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Jun 2018 15:44:50 +0000 (17:44 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Jun 2018 15:44:50 +0000 (17:44 +0200)
js/libs/fluidbook/fluidbook.nav.js

index 8a0d68e1616cc937358ca29437358eb2f954864a..a58dca8bd8a35228585972557e03b035836e3a47 100644 (file)
@@ -427,7 +427,11 @@ FluidbookNav.prototype = {
                         $(l).find('span.number').text(n);
                     }
                 });
+                try {
                     this.fluidbook.cart.instance.updateIcon();
+                }catch (e) {
+                    
+                }
             } else if (icon == 'lang' && this.fluidbook.l10n.multilangEnabled) {
                 // Note: the "!" at the beginning of the title/help parameters means that we don't want these strings translated
                 link = this.addLink(navType, 'nav-locales', '#/locales', 'locales', '!' + this.fluidbook.l10n.getCurrentLanguageName(), '!Select Language');