mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
removed loadInitialState()
This commit is contained in:
@@ -24,18 +24,6 @@ function Msd() {
|
||||
|
||||
/********************************************************************************/
|
||||
|
||||
self.loadInitialState = function() {
|
||||
var http = tools.makeRequest("GET", "/kvmd/msd", function() {
|
||||
if (http.readyState === 4) {
|
||||
if (http.status === 200) {
|
||||
self.setState(JSON.parse(http.responseText).result);
|
||||
} else {
|
||||
setTimeout(self.loadInitialState, 1000);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
self.setState = function(state) {
|
||||
__state = state;
|
||||
__applyState();
|
||||
|
||||
Reference in New Issue
Block a user