mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-12 11:23:52 +02:00
delete unused apis
This commit is contained in:
54
html/app.js
54
html/app.js
@@ -2982,60 +2982,6 @@ if (window.CefSharp) {
|
||||
});
|
||||
};
|
||||
|
||||
// API: Time
|
||||
|
||||
API.getServerTime = function () {
|
||||
return this.call('time', {
|
||||
method: 'GET'
|
||||
}).then((json) => {
|
||||
var args = {
|
||||
json
|
||||
};
|
||||
this.$emit('TIME', args);
|
||||
return args;
|
||||
});
|
||||
};
|
||||
|
||||
// API: Youtube
|
||||
|
||||
/*
|
||||
param = {
|
||||
q: string,
|
||||
type: string ('video'),
|
||||
safeSearch: string ('strict'),
|
||||
maxResults: number (25),
|
||||
part: string ('snippet')
|
||||
}
|
||||
*/
|
||||
API.youtube = function (param) {
|
||||
return this.call('youtube', {
|
||||
method: 'GET',
|
||||
body: param
|
||||
}).then((json) => {
|
||||
var args = {
|
||||
param,
|
||||
json
|
||||
};
|
||||
this.$emit('YOUTUBE', args);
|
||||
return args;
|
||||
});
|
||||
};
|
||||
|
||||
// API: Events
|
||||
|
||||
// deprecated: moved to user's property
|
||||
API.getEvents = function () {
|
||||
return this.call('events', {
|
||||
method: 'GET'
|
||||
}).then((json) => {
|
||||
var args = {
|
||||
json
|
||||
};
|
||||
this.$emit('EVENTS', args);
|
||||
return args;
|
||||
});
|
||||
};
|
||||
|
||||
// API
|
||||
|
||||
var extractFileId = (s) => {
|
||||
|
||||
Reference in New Issue
Block a user