Is there a way to identify the number of screens using javascript or jquery?
We have an application which should not be mirrored on any screen, even the case hardware supporting more than one screen.
Thanks in advance.
Is there a way to identify the number of screens using javascript or jquery?
We have an application which should not be mirrored on any screen, even the case hardware supporting more than one screen.
Thanks in advance.
If you're talking about purely browser-based detection, then you're probably out of luck. However, if the application is built around Electron, then you can use screen.getAllDisplays
const electron = require('electron')
const { app } = electron
app.on('ready', () => {
const screens = electron.screen.getAllDisplays()
if(screens.length > 1){
// TODO: Do something when there's more than one display
}
})