mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 16:44:27 +01:00
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) {
|
||||
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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user