Skip to content

Commit

Permalink
Use better language for a variable (#168)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
kaicataldo and sindresorhus committed Aug 6, 2020
1 parent 2654d15 commit 0305ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get-browser-globals.js
@@ -1,6 +1,6 @@
'use strict';

const blacklist = [
const ignorePatterns = [
/^webkit/i,
'BeforeInstallPromptEvent',
/^Bluetooth/,
Expand Down Expand Up @@ -45,7 +45,7 @@ const blacklist = [
const globals = Object.getOwnPropertyNames(window)
.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()))
.filter(global => {
for (const pattern of blacklist) {
for (const pattern of ignorePatterns) {
if (typeof pattern === 'string') {
if (global === pattern) {
return false;
Expand Down

0 comments on commit 0305ab7

Please sign in to comment.