1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 13:47:59 +01:00

Fix loading storage files.

This commit is contained in:
Kris Maglione
2010-12-02 22:23:58 -05:00
parent 0346a1ff18
commit 2aaa8962b7
2 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ const win32 = /^win(32|nt)$/i.test(services.runtime.OS);
function loadData(name, store, type) {
try {
if (storage.infoPath)
var file = storage.infoPath.child(name);
var file = storage.infoPath.child(name).read();
if (file)
var result = services.json.decode(file);
if (result instanceof type)