Skip to content

Commit

Permalink
fix: 图标以及标题显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
eeelester committed Sep 15, 2024
1 parent 802a7d8 commit 1517caf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Deploy

on: workflow_dispatch

on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
jobs:
submit:
name: Release && Submit
Expand Down Expand Up @@ -31,16 +35,13 @@ jobs:
run: pnpm install

- name: release
run: pnpm release
run: pnpm release -i=${{ github.event.inputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Zip extensions
run: pnpm zip

- name: List files
run: ls -R

- name: Submit to stores
run: |
pnpm wxt submit \
Expand Down
3 changes: 3 additions & 0 deletions entrypoints/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export default defineContentScript({
function listenVideoSizeChange(video: HTMLVideoElement) {
let lastTimePageFullScreen = false
const resizeObserver = new ResizeObserver((entries) => {
// 当用户在popup关闭此功能后
if (!switchState)
return
for (const entry of entries) {
console.log('resizeObserver', entry)
if (entry.contentRect) {
Expand Down
6 changes: 6 additions & 0 deletions wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import { defineConfig } from 'wxt';
export default defineConfig({
modules: ['@wxt-dev/module-react'],
manifest: {
name: 'B站SC助手',
permissions: ['storage'],
icons: {
"16": "./icons/icon-able-16.png",
"32": "./icons/icon-able-32.png",
"48": "./icons/icon-able-48.png"
}
},
runner: {
startUrls: ["https://live.bilibili.com/7777"],
Expand Down

0 comments on commit 1517caf

Please sign in to comment.