diff --git a/www/index.html b/www/index.html index 8393f02c..f46865a2 100644 --- a/www/index.html +++ b/www/index.html @@ -51,8 +51,11 @@ License: Current status : I have tested it with the small dump (2010-08-14), the French dump (2012-02-03) and the French wiktionary dump (2011-03-16). It does NOT work on the English dump for now (I'm working on it)

- On desktops, it works at least on Firefox 17 and Chrome 23. I tested it on the Firefos OS simulator : it works but requires (for now) to put the small dump files in the "Music" folder of your device. It looks for wikipedia_small_2010-08-14/titles.idx in it. So far, I could not test it on a real Firefox OS device. - Update 2013-01-25 : it's now broken on latest Firefox OS, because of more strict security policy on accessing the local data. You now need to have at least a privileged webapp to have this right. Cf https://docs.google.com/a/mozilla.com/spreadsheet/ccc?key=0Akyz_Bqjgf5pdENVekxYRjBTX0dCXzItMnRyUU1RQ0E#gid=0 +
It's only a proof of concept sor far : there are certainly many many ways this could be enhanced (suggestions and patche are welcome : the source code is on github). In particular, the performance can be optimized when reading an article, and the links inside an article do not work for now.
diff --git a/www/js/app.js b/www/js/app.js index a0aa6d80..87fc6068 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -42,7 +42,7 @@ onKeyUpPrefix(e) var storage = null; if (typeof navigator.getDeviceStorage == "function") { - storage = navigator.getDeviceStorage('music'); + storage = navigator.getDeviceStorage('sdcard'); } if (storage != null) { diff --git a/www/manifest.webapp b/www/manifest.webapp index 72e471ad..864e68d3 100644 --- a/www/manifest.webapp +++ b/www/manifest.webapp @@ -19,5 +19,12 @@ "description": "Lecteur Wikipedia hors-connexion" } }, - "default_locale": "en" + "default_locale": "en", + "permissions": { + "device-storage:sdcard": { + "description": "Required to read wikipedia dumps", + "access": "readonly" + } + }, + "type": "privileged" }