View Single Post
Old 12-07-2016, 02:37 AM   #2
trap000d
Member
trap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipse
 
Posts: 23
Karma: 8028
Join Date: Sep 2016
Device: Kindle PW1
It's not working anymore.

See here:
https://www.mobileread.com/forums/sho...postcount=1663

Quote:
Originally Posted by Barty View Post
In f/w 5.4.x I was able to change the store button so it opens the web browser to my calibre server. Tried doing the same with 5.8.7 but no joy.The file and relevant code

Code:
/usr/share/webkit-1.0/pillow/javascripts/search_bar.js

        store: function() {
            nativeBridge.setLipcProperty(APP_MANAGER_ID, 'start', STORE_ID);
            nativeBridge.dismissChrome();
            nativeBridge.recordDeviceMetric("Pillow","Pillow" + getCurrentApp(),"store", 1, 0, METRIC_PRIORITY_LOW, METRIC_TYPE_COUNTER);
        },
modified

Code:
        store: function() {
            alert('yeah baby');
            // nativeBridge.setLipcProperty(APP_MANAGER_ID, 'start', STORE_ID);
            nativeBridge.setLipcProperty(APP_MANAGER_ID, "start", BROWSER_ID + '?view=' + encodeURIComponent("http://barty:8080"));
            nativeBridge.dismissChrome();
            // nativeBridge.recordDeviceMetric("Pillow","Pillow" + getCurrentApp(),"store", 1, 0, METRIC_PRIORITY_LOW, METRIC_TYPE_COUNTER);
        },
The alert never pops up.

Any ideas? Thanks in advance
trap000d is offline   Reply With Quote