Working on stacked buttons.
This commit is contained in:
+4
-16
@@ -45,20 +45,12 @@ export class Capabilities {
|
||||
*/
|
||||
static get isElectron() {
|
||||
// Renderer process
|
||||
if (
|
||||
typeof window !== 'undefined' &&
|
||||
typeof window.process === 'object' &&
|
||||
window.process.type === 'renderer'
|
||||
) {
|
||||
if (typeof window !== 'undefined' && typeof window.process === 'object' && window.process.type === 'renderer') {
|
||||
return true
|
||||
}
|
||||
|
||||
// Main process
|
||||
if (
|
||||
typeof process !== 'undefined' &&
|
||||
typeof process.versions === 'object' &&
|
||||
!!process.versions.electron
|
||||
) {
|
||||
if (typeof process !== 'undefined' && typeof process.versions === 'object' && !!process.versions.electron) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -126,9 +118,7 @@ export class Capabilities {
|
||||
export class CapabilitiesTests {
|
||||
static testConfirm() {
|
||||
let bool = confirm('Please confirm')
|
||||
document.getElementById('demo').innerHTML = bool
|
||||
? 'Confirmed'
|
||||
: 'Not confirmed'
|
||||
document.getElementById('demo').innerHTML = bool ? 'Confirmed' : 'Not confirmed'
|
||||
}
|
||||
|
||||
static testPrompt() {
|
||||
@@ -149,9 +139,7 @@ export class CapabilitiesTests {
|
||||
}
|
||||
|
||||
static testMultiTouchTable() {
|
||||
let value =
|
||||
'Is the device a multi-touch table? ' +
|
||||
Capabilities.isMultiTouchTable
|
||||
let value = 'Is the device a multi-touch table? ' + Capabilities.isMultiTouchTable
|
||||
multi_touch_table.innerHTML = value
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user