Added test data for the live view.

The data loading mechanism would be different in a CEF-based
application, anyway.
This commit is contained in:
WrinklyNinja
2014-07-12 15:14:12 +01:00
parent 256e336641
commit ed424030c8
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -219,9 +219,11 @@ function setupEventHandlers() {
}
function processURLParams() {
/* Get the data path from the URL and load it. */
var pos = document.URL.indexOf("?data=");
/*var pos = document.URL.indexOf("?data=");*/
var pos = 0;
if (pos != -1) {
var datapath = 'file:///' + document.URL.substring(pos+6);
/*var datapath = 'file:///' + document.URL.substring(pos+6);*/
var datapath = 'testdata'
console.log(datapath);
require([datapath], function(){
var totalMessageNo = 0;
File diff suppressed because one or more lines are too long