I have 2 apps on Parse. The first one is for production and the other one is for testing. In my back-office, I need to see the data from these 2 apps, but Parse.initialize()
is a singleton, so I tried this:
(function (Prod) {
Prod.initialize('APP_KEY', 'JAVASCRIPT_KEY');
/**
* My Code
*/
})(Object.create(Parse));
(function (Testing) {
Testing.initialize('ANOTHER_APP_KEY', 'ANOTHER_JAVASCRIPT_KEY');
/**
* My Other Code
*/
})(Object.create(Parse));
And of course, it didn't worked. Any advice ?
EDIT: It seems that the app keys are saved to the local storage. It prevent the usage of 2 instances of Parse ...