Upgrade Electron to 39.2.7 to fix macOS Tahoe GPU performance regression (#931)
This commit is contained in:
@@ -73,7 +73,7 @@ async function startServer() {
|
||||
|
||||
backendRpc.on(makeSaveDialogRpc(), async request => {
|
||||
// In browser mode, file saving is handled client-side via download
|
||||
return { canceled: true, filePath: undefined }
|
||||
return { canceled: true, filePath: '' }
|
||||
})
|
||||
|
||||
backendRpc.on(getAppVersion, async () => {
|
||||
|
||||
@@ -22,8 +22,8 @@ export interface MockSparkplugClient {
|
||||
stop: () => void
|
||||
}
|
||||
|
||||
var sample = (function () {
|
||||
var config = {
|
||||
let sample = (function () {
|
||||
let config = {
|
||||
serverUrl: 'tcp://127.0.0.1:1883',
|
||||
username: '',
|
||||
password: '',
|
||||
@@ -169,12 +169,12 @@ var sample = (function () {
|
||||
// Create node command handler
|
||||
// spell-checker: disable-next-line
|
||||
sparkplugClient.on('ncmd', function (payload: UPayload) {
|
||||
var timestamp = payload.timestamp,
|
||||
let timestamp = payload.timestamp,
|
||||
metrics = payload.metrics
|
||||
|
||||
if (metrics !== undefined && metrics !== null) {
|
||||
for (var i = 0; i < metrics.length; i++) {
|
||||
var metric = metrics[i]
|
||||
for (let i = 0; i < metrics.length; i++) {
|
||||
let metric = metrics[i]
|
||||
if (metric.name == 'Node Control/Rebirth' && metric.value) {
|
||||
console.log("Received 'Rebirth' command")
|
||||
// Publish Node BIRTH certificate
|
||||
@@ -189,7 +189,7 @@ var sample = (function () {
|
||||
// Create device command handler
|
||||
// spell-checker: disable-next-line
|
||||
sparkplugClient.on('dcmd', function (deviceId: string, payload: UPayload) {
|
||||
var timestamp = payload.timestamp,
|
||||
let timestamp = payload.timestamp,
|
||||
metrics = payload.metrics,
|
||||
inboundMetricMap: { [name: string]: any } = {},
|
||||
outboundMetric: Array<UMetric> = [],
|
||||
@@ -199,8 +199,8 @@ var sample = (function () {
|
||||
|
||||
// Loop over the metrics and store them in a map
|
||||
if (metrics !== undefined && metrics !== null) {
|
||||
for (var i = 0; i < metrics.length; i++) {
|
||||
var metric = metrics[i]
|
||||
for (let i = 0; i < metrics.length; i++) {
|
||||
let metric = metrics[i]
|
||||
if (metric.name !== undefined && metric.name !== null) {
|
||||
inboundMetricMap[metric.name] = metric.value
|
||||
}
|
||||
@@ -239,7 +239,7 @@ var sample = (function () {
|
||||
return connected
|
||||
}
|
||||
|
||||
return { run: run }
|
||||
return { run }
|
||||
})()
|
||||
|
||||
export default sample
|
||||
|
||||
@@ -35,7 +35,7 @@ async function main() {
|
||||
console.log(`✓ Window ready, title: ${title}`)
|
||||
|
||||
// Check console logs for remote debugging message
|
||||
const logs: string[] = []
|
||||
const logs: Array<string> = []
|
||||
page.on('console', msg => {
|
||||
const text = msg.text()
|
||||
logs.push(text)
|
||||
|
||||
Reference in New Issue
Block a user