Use const
This commit is contained in:
parent
1779701445
commit
ab8908a4af
7 changed files with 29 additions and 49 deletions
|
@ -1,16 +1,15 @@
|
|||
var getNextId, ipcRenderer, isValid, nativeImage, nextId, ref,
|
||||
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
||||
const ipcRenderer = require('electron').ipcRenderer;
|
||||
const nativeImage = require('electron').ref.nativeImage;
|
||||
|
||||
ref = require('electron'), ipcRenderer = ref.ipcRenderer, nativeImage = ref.nativeImage;
|
||||
var nextId = 0;
|
||||
var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
||||
|
||||
nextId = 0;
|
||||
|
||||
getNextId = function() {
|
||||
var getNextId = function() {
|
||||
return ++nextId;
|
||||
};
|
||||
|
||||
// |options.type| can not be empty and has to include 'window' or 'screen'.
|
||||
isValid = function(options) {
|
||||
var isValid = function(options) {
|
||||
return ((options != null ? options.types : void 0) != null) && Array.isArray(options.types);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue