-
Notifications
You must be signed in to change notification settings - Fork 816
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mv3 makes code cov w/ istanbul virtually impossible due to restrictions on unsafe-eval
- Loading branch information
1 parent
7f1368c
commit 013904a
Showing
10 changed files
with
262 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,10 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm i prettier | ||
|
@@ -23,20 +23,20 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
name: Build ${{ matrix.platform }} | ||
|
||
strategy: | ||
matrix: | ||
platform: ["chrome", "firefox"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run ${{ matrix.platform }} | ||
run-tests: | ||
|
@@ -59,6 +59,3 @@ jobs: | |
uses: mujo-code/puppeteer-headful@master | ||
with: | ||
args: npm test | ||
|
||
- name: Codecov | ||
uses: codecov/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
const userAgent = navigator.userAgent; | ||
|
||
export const isFirefox = userAgent.indexOf("Firefox") >= 0; | ||
export const isWebKit = userAgent.indexOf("AppleWebKit") >= 0; | ||
export const isFirefox = navigator.userAgent.indexOf("Firefox") >= 0; | ||
export const isWebKit = navigator.userAgent.indexOf("AppleWebKit") >= 0; | ||
export const isEdge = navigator.userAgent.indexOf("Edg") >= 0; | ||
export const isChromium = userAgent.indexOf("Chrome") >= 0; | ||
export const isSafari = !isChromium && userAgent.indexOf("Safari") >= 0; | ||
export const isChromium = navigator.userAgent.indexOf("Chrome") >= 0; | ||
export const isSafari = | ||
!isChromium && navigator.userAgent.indexOf("Safari") >= 0; | ||
export const isChrome = | ||
navigator.userAgent.indexOf("Chrome") !== -1 && | ||
navigator.userAgent.indexOf("Edg") === -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.