Segmentation Fault on mobile emulation

Hello, I am testing some code that someone wrote as an example for how to use the device emulation option in electron. When I run their code, I only get an error that reads “Segmentation Fault” with no other help. The code is included below, any help is appreciated.

`const electron = require(‘electron’);
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;

console.log(‘electron’, process.versions.electron);
console.log(‘type’, process.type);
console.log(‘node’, process.versions.node);
console.log(‘chrome’, process.versions.chrome);

app.on(‘ready’, function(){

const win = new BrowserWindow({
width: 480,
height: 640,
webPreferences: {
nodeIntegration: false,
javascript: true
}
});
// win.setBounds(options)

const webContents = win.webContents;

webContents.openDevTools({
detach: false
});
// webContents.disableDeviceEmulation();
webContents.on(‘devtools-opened’, function(){
console.log(‘devtools-opened’);
});

webContents.enableDeviceEmulation({
screenPosition: ‘mobile’,
screenSize: { width: 480, height: 640 },
deviceScaleFactor: 0,
viewPosition: { x: 0, y: 0 },
viewSize: { width: 480, height: 640 },
fitToView: false,
offset: { x: 0, y: 0 }
});

webContents.loadURL(‘https://www.google.com’, {
‘extraHeaders’ : ‘pragma: no-cache\n’
});

webContents.on(‘dom-ready’, function(){
console.log(‘dom ready’);
});

webContents.on(‘crashed’, function(){
console.log(‘crashed’);
});

webContents.on(‘did-stop-loading’, function(){
console.log(‘did-stop-loading’);
});

webContents.on(‘did-finish-load’, function(){
console.log(‘did-finish-load’);
});

});

app.on(‘window-all-closed’, function () {
// On OS X keep app open until Cmd + Q
if (process.platform !== ‘darwin’) {
app.quit();
}
});`