mirror of
https://github.com/electron/electron.git
synced 2026-01-27 00:09:09 -05:00
Merge pull request #3822 from hashedhyphen/support-strict-mode
🐛 Support strict mode on Tutorial
This commit is contained in:
@@ -78,6 +78,8 @@ The `main.js` should create windows and handle system events, a typical
|
||||
example being:
|
||||
|
||||
```javascript
|
||||
'use strict';
|
||||
|
||||
const electron = require('electron');
|
||||
const app = electron.app; // Module to control application life.
|
||||
const BrowserWindow = electron.BrowserWindow; // Module to create native browser window.
|
||||
|
||||
Reference in New Issue
Block a user