mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 09:57:50 +08:00
fix: Improve MESSAGE PASSWORD contrast and add global Buffer polyfill shim
This commit is contained in:
@@ -621,7 +621,7 @@ function App() {
|
|||||||
readOnly={isReadOnly}
|
readOnly={isReadOnly}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-[10px] text-slate-800 mt-1">
|
<p className="text-[10px] text-slate-300 mt-1">
|
||||||
{encryptionMode === 'krux'
|
{encryptionMode === 'krux'
|
||||||
? 'Required passphrase for Krux encryption'
|
? 'Required passphrase for Krux encryption'
|
||||||
: 'Symmetric encryption password (SKESK)'}
|
: 'Symmetric encryption password (SKESK)'}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import './polyfills';
|
||||||
|
|
||||||
// Suppress OpenPGP.js AES cipher warnings
|
// Suppress OpenPGP.js AES cipher warnings
|
||||||
const originalWarn = console.warn;
|
const originalWarn = console.warn;
|
||||||
const originalError = console.error;
|
const originalError = console.error;
|
||||||
|
|||||||
7
src/polyfills.ts
Normal file
7
src/polyfills.ts
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user