Skip to content

Commit

Permalink
fix: bump gd-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeDuarteM committed Feb 10, 2019
1 parent 843efc6 commit bfda068
Show file tree
Hide file tree
Showing 6 changed files with 748 additions and 3,594 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
language: node_js
cache:
directories:
- ~/.npm
cache: yarn
node_js:
- node
- lts/*
script: npm run ci
script: yarn ci
jobs:
include:
- stage: semantic-release
if: branch = master
node_js: node
script:
- npm run build
- npm run release
- yarn build
- yarn release
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Gabriel Duarte
Copyright (c) 2019 Gabriel Duarte

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"devDependencies": {
"@types/chrome": "0.0.76",
"@types/node": "10.12.24",
"gd-scripts": "3.1.0",
"semantic-release": "15.9.16",
"semantic-release-chrome": "1.0.2"
"gd-scripts": "4.0.0",
"semantic-release": "15.13.3",
"semantic-release-chrome": "1.1.0"
}
}
10 changes: 5 additions & 5 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ const checkOpenedPlayers = (): Promise<PlayerTab[]> =>
try {
const openedPlayers: PlayerTab[] = []
let checkedPlayers = 0
players.forEach(player => {
chrome.tabs.query({ url: player.tabQuery }, tabs => {
players.forEach((player) => {
chrome.tabs.query({ url: player.tabQuery }, (tabs) => {
checkedPlayers++
if (tabs.length && tabs[0].id) {
openedPlayers.push({ player, tab: tabs[0] })
Expand All @@ -83,7 +83,7 @@ const checkOpenedPlayers = (): Promise<PlayerTab[]> =>
}
})

const getSelector = (player: Player, command: Command) => {
const getSelector = (player: Player, command: Command): string => {
switch (command) {
case 'prev':
return player.controlQueries.prev
Expand All @@ -109,8 +109,8 @@ const executeCommandPlayer = (
}
}

const openDefaultPlayer = () => {
const defaultPlayer = players.find(x => x.default)
const openDefaultPlayer = (): void => {
const defaultPlayer = players.find((x) => x.default)

if (defaultPlayer) {
chrome.tabs.create({ url: defaultPlayer.url })
Expand Down
Loading

0 comments on commit bfda068

Please sign in to comment.