fix: Improve MESSAGE PASSWORD contrast and add global Buffer polyfill shim

This commit is contained in:
LC mac
2026-02-08 01:45:37 +08:00
parent 489d3fea3b
commit d4d5807342
3 changed files with 10 additions and 1 deletions

View File

@@ -621,7 +621,7 @@ function App() {
readOnly={isReadOnly}
/>
</div>
<p className="text-[10px] text-slate-800 mt-1">
<p className="text-[10px] text-slate-300 mt-1">
{encryptionMode === 'krux'
? 'Required passphrase for Krux encryption'
: 'Symmetric encryption password (SKESK)'}

View File

@@ -1,3 +1,5 @@
import './polyfills';
// Suppress OpenPGP.js AES cipher warnings
const originalWarn = console.warn;
const originalError = console.error;

7
src/polyfills.ts Normal file
View File

@@ -0,0 +1,7 @@
import { Buffer } from 'buffer';
// Make Buffer available globally for libraries that expect it
if (typeof window !== 'undefined') {
(window as any).Buffer = Buffer;
(window as any).global = window;
}