Skip to content

Commit

Permalink
fix type and cors
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Sep 25, 2021
1 parent e8006d8 commit 12426dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion main/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ let tray = null;
height: 800,
titleBarStyle: "hidden", // <-- add this line if needed
webPreferences: {
enableRemoteModule: true // <-- add this line
enableRemoteModule: true, // <-- add this line
webSecurity: false
},
});

Expand Down
2 changes: 1 addition & 1 deletion renderer/pages/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function Home() {

useEffect(() => {
bonjour = require('bonjour')()
bonjour.find({ type: 'http' }, (service) => {
bonjour.find({ type: 'wled' }, (service) => {
if (service.referer && service.referer.address) {
bonjour.destroy()
setIp(service.referer.address)
Expand Down
2 changes: 1 addition & 1 deletion renderer/pages/yz.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useRouter } from 'next/router';
import { ipcRenderer } from 'electron';
import { ChevronLeft, ChevronRight } from '@material-ui/icons';
import { Drawer, List, Divider, Card, Typography, Button } from '@material-ui/core';
import useLeftBarStyles from '../styles/LeftBar.styles';
import useLeftBarStyles from '../styles/yz.styles';
import { template } from '../components/MenuTemplate';

const LeftBar = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const useLeftBarStyles = makeStyles((theme) => ({
width: 42,
height: 42,
border: '1px solid rgba(255, 255, 255, 0.12)',
borderLeft: 0,
display: 'flex'
},
contentShift: {
Expand Down

0 comments on commit 12426dd

Please sign in to comment.