mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 09:31:53 +08:00
ipad mouse buttons, keyboard refactoring
This commit is contained in:
@@ -25,6 +25,12 @@ var tools = new function() {
|
||||
|
||||
this.forEach = (...args) => Array.prototype.forEach.call(...args);
|
||||
|
||||
this.setDefault = function(dict, key, value) {
|
||||
if (!(key in dict)) {
|
||||
dict[key] = value;
|
||||
}
|
||||
};
|
||||
|
||||
this.makeRequest = function(method, url, callback, body=null, content_type=null) {
|
||||
var http = new XMLHttpRequest();
|
||||
http.open(method, url, true);
|
||||
|
||||
Reference in New Issue
Block a user