mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-24 03:47:53 +00:00
disable dev mode option when on web
This commit is contained in:
parent
548ba9b29c
commit
54b90ed65d
@ -98,7 +98,11 @@ export const MessageDisplay = ({ htmlContent, isReply }) => {
|
||||
const target = e.target;
|
||||
if (target.tagName === 'A') {
|
||||
const href = target.getAttribute('href');
|
||||
window.electronAPI.openExternal(href);
|
||||
if(window?.electronAPI){
|
||||
window.electronAPI.openExternal(href);
|
||||
} else {
|
||||
window.open(href, '_system');
|
||||
}
|
||||
} else if (target.getAttribute('data-url')) {
|
||||
const url = target.getAttribute('data-url');
|
||||
|
||||
|
@ -186,7 +186,8 @@ export const Settings = ({
|
||||
}
|
||||
label="Disable all push notifications"
|
||||
/>
|
||||
<FormControlLabel
|
||||
{window?.electronAPI && (
|
||||
<FormControlLabel
|
||||
sx={{
|
||||
color: "white",
|
||||
}}
|
||||
@ -198,6 +199,7 @@ export const Settings = ({
|
||||
}
|
||||
label="Enable dev mode"
|
||||
/>
|
||||
)}
|
||||
</Box>
|
||||
</Dialog>
|
||||
</React.Fragment>
|
||||
|
Loading…
x
Reference in New Issue
Block a user