Gregory Ballantine
a7b1d6ab84
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
15 lines
581 B
CoffeeScript
15 lines
581 B
CoffeeScript
si = require('systeminformation')
|
|
|
|
window.onload = () ->
|
|
si.graphics()
|
|
.then((data) ->
|
|
document.getElementById('gpuInfo').innerText = data.controllers[0].model
|
|
document.getElementById('gpuVendor').innerText = data.controllers[0].vendor
|
|
document.getElementById('gpuVendorId').innerText = data.controllers[0].vendorId
|
|
document.getElementById('gpuVram').innerText = data.controllers[0].vram + 'MB'
|
|
document.getElementById('gpuBus').innerText = data.controllers[0].bus
|
|
console.log(data)
|
|
).catch((error) ->
|
|
console.error(error)
|
|
)
|