Skip to content

Commit

Permalink
Merge pull request #218 from whitecodes/dev
Browse files Browse the repository at this point in the history
fix prts.wiki image link
  • Loading branch information
ChingCdesu authored May 22, 2024
2 parents 57c1275 + 882c0c8 commit 05950bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- ".gitignore"
- ".github/**"
- "!.github/workflows/*.yml"
workflow_dispatch:

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion packages/main/windowManager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class WindowManager implements Module {
constructor() {
this.window_ = new BrowserWindow({
backgroundColor: '#00000000',
frame: getPlatform() === 'macos',
frame: getPlatform() != 'windows',
icon: join(__dirname, '../renderer/assets/icon.png'),
titleBarOverlay: true,
// frameless和titleBarStyle: 'hidden'同时开,会显示窗口控制按钮
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer/src/utils/game_image.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MD5 } from 'crypto-js'

const baseUrl = 'https://prts.wiki/images'
const baseUrl = 'https://media.prts.wiki'

const getFileUrl = (filename: string): string => {
const hash = String(MD5(filename))
return `${baseUrl}/${hash[0]}/${hash.substring(0, 2)}/${filename}`
return `${baseUrl}/${hash[0]}/${hash.substring(0, 1)}/${filename}`
}

export const getOperatorAvatar = (operatorCode: string): string =>
Expand Down

0 comments on commit 05950bf

Please sign in to comment.