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) { if (!window.ipcRenderer) {
return ( return (
<div style={{ color: 'red' }}> <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 mx-10 my-10 rounded relative" role="alert">
Error: "ipcRenderer" not found in window object. You most likely opened Bruno inside your web browser. Bruno <strong class="font-bold">ERROR:</strong>
only works within Electron, you can start Electron using "npm run dev:electron". <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> </div>
); );
} }