Would it be possible to move the data.js (or data.json) file call out of the c2runtime.js file, or possibly load it from the configurable "Project Files" directory in the export options?
Due to the security proxy system that I am using, I have to update the block of code in the c2runtime.js file that loads that file every time I export our project. This isn't exactly a high priority, just more a nuisance that I wanted to make you aware of... a nice-to-have.
These are the lines of code that I have to modify:
- Code: Select all
Runtime.prototype.requestProjectData = function ()
var self = this;
xhr = new ActiveXObject("Microsoft.XMLHTTP");
xhr = new XMLHttpRequest();
var datajs_filename = "/res/data.js";
if (this.isWindows8App || this.isWindowsPhone8 || this.isWindowsPhone81)
datajs_filename = "/res/data.json";
xhr.open("GET", datajs_filename, true);
var supportsJsonResponse = false;
from a raw "data.js" / "data.json" to pointing it to the Project Files resources directory at "/res/*"
Not high priority, but this would be a nice-to-have.