Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
1 changed files with 1301 additions and 196 deletions
|
|
@ -275,6 +275,11 @@
|
|||
}
|
||||
if (type === 'screen-on') window.ScreenManager?.turnScreenOn(true);
|
||||
if (type === 'home' || type === 'holdhome') {
|
||||
if (window.VulpesPlatform === 'tundra' && type === 'home') {
|
||||
call('settings.get', {key:'vibration.enabled'}).then(setting => {
|
||||
if (setting.value !== false) navigator.vibrate(30);
|
||||
}).catch(console.error);
|
||||
}
|
||||
call('activities.cancel', {}).catch(console.error);
|
||||
dispatchEvent(new CustomEvent(type));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue