refactor: update workflow names to Chinese and remove unnecessary console log
All checks were successful
构建扩展程序 / build (push) Successful in 57s

This commit is contained in:
Astrian Zheng 2025-05-28 14:05:01 +10:00
parent ccd5545779
commit baaf451978
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
name: Build Extension
name: 构建扩展程序
on:
push:
@ -12,19 +12,20 @@ jobs:
steps:
- uses: actions/checkout@v3
name: 检出代码
- name: Setup Node.js
- name: 设置 Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
- name: 安装依赖
run: npm install
- name: Build extension
- name: 构建扩展程序
run: npm run build
- name: Upload build artifacts
- name: 上传工件
uses: actions/upload-artifact@v3
with:
name: extension-build

View File

@ -13,7 +13,6 @@ chrome.webRequest.onBeforeRequest.addListener(
details.frameId === 0
) {
const pref = await chrome.storage.sync.get('preferences')
console.log(pref.preferences.autoRedirect)
if (pref === undefined || pref.preferences === undefined || pref.preferences.autoRedirect === undefined || pref.preferences.autoRedirect === true) {
chrome.tabs.create({ url: chrome.runtime.getURL('index.html') })