forked from extern/bruno
chore: added styles to "ipcRenderer not found" error notification
This commit is contained in:
parent
4607814c09
commit
53e85f4568
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user