Skip to content

Commit

Permalink
🐳 chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
andywang425 committed Aug 5, 2023
1 parent aeac120 commit 9c02cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,13 @@ jobs:
- name: Build
run: npm run build

- name: Temporarily remove 'dist' from .gitignore
- name: Remove 'dist' from .gitignore
run: sed -i '/dist/d' .gitignore

- name: Commit and push if there are changes
run: |
git config --local user.email "action@github.com"
git config --local user.email "actions@users.noreply.github.com"
git config --local user.name "GitHub Action"
git add dist/*
git diff --quiet && git diff --staged --quiet || git commit -m "Automated build"
git push
- name: Restore .gitignore
run: echo "dist" >> .gitignore
6 changes: 1 addition & 5 deletions src/modules/enhanceExperience/banP2P.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ class BanP2P extends BaseModule {
config = this.moduleStore.moduleConfig.EnhanceExperience.banp2p

private async banP2P() {
const RTClist: string[] = [
'RTCPeerConnection',
'mozRTCPeerConnection',
'webkitRTCPeerConnection'
]
const RTClist = ['RTCPeerConnection', 'mozRTCPeerConnection', 'webkitRTCPeerConnection']
for (const i of RTClist) {
// 判断属性是否存在并且是否可配置
if (
Expand Down

0 comments on commit 9c02cac

Please sign in to comment.