How to use the pxt-core.globalConfig function in pxt-core

To help you get started, we’ve selected a few pxt-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / pxt-microbit / clients / electron / main.js View on Github external
function createWindow () {
  win = new BrowserWindow({
    width: 800,
    height: 600,
    title: "code the micro:bit"
  })
  Menu.setApplicationMenu(null)
  win.loadURL(`file://${__dirname}/index.html#local_token=${pxt.globalConfig.localToken}`)
  win.on('closed', () => {
    win = null
  })
}

pxt-core

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

MIT
Latest version published 12 days ago

Package Health Score

80 / 100
Full package analysis