chore: added styles to "ipcRenderer not found" error notification

This commit is contained in:
Anoop M D 2023-10-25 23:08:05 +05:30
parent 4607814c09
commit 53e85f4568

View File

@ -43,9 +43,13 @@ function MyApp({ Component, pageProps }) {
if (!window.ipcRenderer) {
return (
<div style={{ color: 'red' }}>
Error: "ipcRenderer" not found in window object. You most likely opened Bruno inside your web browser. Bruno
only works within Electron, you can start Electron using "npm run dev:electron".
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 mx-10 my-10 rounded relative" role="alert">
<strong class="font-bold">ERROR:</strong>
<span className="block inline ml-1">"ipcRenderer" not found in window object.</span>
<div>
You most likely opened Bruno inside your web browser. Bruno only works within Electron, you can start Electron
in an adjacent terminal using "npm run dev:electron".
</div>
</div>
);
}