Make it so the playground can decide which index file to serve. (#223)
* Make it so the playground can decide which index file to serve. Also remove special index-nw.html and use the current playground config to decide if to show the windows instances option or not. * Give a better name to the struct
This commit is contained in:
committed by
Marcos Nils
parent
2e039a4e60
commit
f277e3776c
@@ -155,6 +155,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
$scope.loadPlaygroundConf = function() {
|
||||
$http({
|
||||
method: 'GET',
|
||||
url: '/my/playground',
|
||||
}).then(function(response) {
|
||||
$scope.playground = response.data;
|
||||
});
|
||||
|
||||
}
|
||||
$scope.getSession = function(sessionId) {
|
||||
$http({
|
||||
method: 'GET',
|
||||
@@ -432,6 +441,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
$scope.loadPlaygroundConf();
|
||||
$scope.getSession($scope.sessionId);
|
||||
|
||||
$scope.createBuilderTerminal = function() {
|
||||
|
||||
Reference in New Issue
Block a user