]> _ Git - fluidbook-html5.git/commitdiff
done #1321 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Apr 2017 09:35:40 +0000 (11:35 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Apr 2017 09:35:40 +0000 (11:35 +0200)
js/libs/fluidbook/fluidbook.nav.js

index 0b48d2baa4732a25421faee54c1205c29798e9c6..018f0d37cb76ae7ff08be4d89a154b77f7c8c653 100644 (file)
@@ -86,12 +86,14 @@ FluidbookNav.prototype = {
 
                 var homeURL = this.fluidbook.datas.home;
                 if (this.fluidbook.datas.home == '%apphome%') {
-                    homeURL = decodeURIComponent();
+                    homeURL = decodeURIComponent(window.localStorage.getItem('apphome'));
+                }
+                if ($_GET['home'] != null) {
+                    homeURL = $_GET['home'];
                 }
                 try {
                     if (homeURL != '') {
-                        fb('app home : ' + window.localStorage.getItem('apphome'))
-                        this.addLink('nav-home', window.localStorage.getItem('apphome'), 'home', 'home');
+                        this.addLink('nav-home', homeURL, 'home', 'home');
                     }
                 } catch (err) {