Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
shalldie committed Oct 18, 2024
1 parent 19c611f commit 4a01f87
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/common-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[English](./common-issues.md) | [中文](./common-issues.zh-CN.md)

## How to get local images' address

Local images can be dragged into the browser to quickly get the file protocol address from the address bar.

## Warn `Your Code installation appears to be corrupt`

It may appear after directly deleting the extension, refer to `How to uninstall` section.
Expand Down
4 changes: 4 additions & 0 deletions docs/common-issues.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[English](./common-issues.md) | [中文](./common-issues.zh-CN.md)

## 如何获取本地图片地址

可以把图片拖到浏览器中,然后从地址栏复制得到。

## 警告 `Code 安装似乎损坏`

可能在直接删除插件后出现,参考 `如何删除插件` 部分。
Expand Down
10 changes: 5 additions & 5 deletions src/background/PatchGenerator/PatchGenerator.checksums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { AbsPatchGenerator, css } from './PatchGenerator.base';
// integrity.prompt

const Translations = [
// en, default
'installation appears to be corrupt. Please reinstall.',
// cs
'je pravděpodobně poškozená. Proveďte prosím přeinstalaci.',
// de
Expand Down Expand Up @@ -33,14 +35,12 @@ const Translations = [
// zh-hans
'安装似乎损坏。请重新安装。',
// zh-hant
'安裝似乎已損毀。請重新安裝。',
// en, default
'Your Code installation appears to be corrupt'
'安裝似乎已損毀。請重新安裝。'
];

export class ChecksumsPatchGenerator extends AbsPatchGenerator<any> {
constructor() {
super({ images: ['1'] });
super({ images: [''] });
}
/**
* fix checksums with css. LOL
Expand All @@ -56,6 +56,6 @@ export class ChecksumsPatchGenerator extends AbsPatchGenerator<any> {
display: none;
}
`
).join('');
).join(' ');
}
}

0 comments on commit 4a01f87

Please sign in to comment.