Skip to content

Commit

Permalink
Remove start.gg api key field
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Feb 17, 2023
1 parent 054a4c2 commit 50f8203
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ app
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) createWindow();
});

store.set('apikey', process.env.STARTGG_API_KEY);

// works for dumb iFrames
session.defaultSession.webRequest.onHeadersReceived({
urls: [
Expand Down
12 changes: 6 additions & 6 deletions src/renderer/components/VideoSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ const VideoSearch = () => {
const [urlError, setUrlError] = useState(false);
const [slugError, setSlugError] = useState(false);

const onChangeFunc = (value: any) => {
window.electron.store.set('apikey', value);
};
// const onChangeFunc = (value: any) => {
// window.electron.store.set('apikey', value);
// };

useEffect(() => {
if (
Expand Down Expand Up @@ -277,14 +277,14 @@ const VideoSearch = () => {
});

return (
<Box className="background-card">
{HiddenTextField(
<Box className="background-card" sx={{ height: '50vh' }}>
{/* {HiddenTextField(
'Start.GG API Key',
'https://start.gg/admin/profile/developer',
window.electron.store.get('apikey'),
onChangeFunc,
false
)}
)} */}
<TextField
error={slugError}
className="textfield"
Expand Down

0 comments on commit 50f8203

Please sign in to comment.