Release Vulpes OS 2.7-preview.24
This commit is contained in:
parent
49572b6b45
commit
97ef99f827
135 changed files with 7717 additions and 2524 deletions
|
|
@ -281,6 +281,16 @@ export const Runtime = {
|
|||
this.actors.add(actor);
|
||||
const { method, params } = request;
|
||||
if (typeof method !== 'string') return { error: { code: 'INVALID_REQUEST' } };
|
||||
if (method === 'system.screenshot') {
|
||||
if (app.id !== 'system') return { error: { code: 'PERMISSION_DENIED' } };
|
||||
try { return { result: await Views.captureSystem(actor) }; }
|
||||
catch (error) { return { error: { code: error.message || 'SCREENSHOT_FAILED' } }; }
|
||||
}
|
||||
if (method === 'apps.close') {
|
||||
if (app.id !== 'costcontrol') return { error: { code: 'PERMISSION_DENIED' } };
|
||||
this.broadcast('home', {}, 'system');
|
||||
return { result: true };
|
||||
}
|
||||
if(method.startsWith('marketplace.')) {
|
||||
if(app.id!=='marketplace')return {error:{code:'PERMISSION_DENIED'}};
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue