mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
📝 Fix code style issue
* Match equality operators for consistent that `==`, `!=` by `===`, `!==`. * Match string expression notation `"` by `'`. [ci skip]
This commit is contained in:
@@ -10,7 +10,7 @@ var { desktopCapturer } = require('electron');
|
||||
desktopCapturer.getSources({types: ['window', 'screen']}, (error, sources) => {
|
||||
if (error) throw error;
|
||||
for (var i = 0; i < sources.length; ++i) {
|
||||
if (sources[i].name == "Electron") {
|
||||
if (sources[i].name === 'Electron') {
|
||||
navigator.webkitGetUserMedia({
|
||||
audio: false,
|
||||
video: {
|
||||
|
||||
Reference in New Issue
Block a user