We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d969d11 commit 55a68baCopy full SHA for 55a68ba
1 file changed
src/popup.mts
@@ -12,10 +12,10 @@ console.log('[shynur] 当前 host:', host)
12
13
const saved_code = (await ((window as any).chrome || (window as any).browser).storage.local.get(
14
[host]
15
-))[host]?.trim() as (string | undefined)
+))[host] as (string | undefined)
16
17
console.log('[shynur] 之前保存的代码:', '\n' + saved_code)
18
-text_area.value = typeof saved_code == 'string' ? saved_code : ''
+text_area.value = saved_code?.trim() ? saved_code.trim() + '\n' : ''
19
20
text_area.addEventListener(
21
'input',
0 commit comments