summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model_fs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/model_fs.js b/model_fs.js
index c8d04e2..353d107 100644
--- a/model_fs.js
+++ b/model_fs.js
@@ -85,7 +85,10 @@ exports.rebuildFiles = function() {
} catch(e) {
console.log(e.toString());
}
- files[slideset]['events'] = JSON.parse(data.toString());
+ var events = JSON.parse(data.toString());
+ if(events['type'] == 'text') {
+ files[slideset]['events'] = events['events'];
+ }
}
});
};