Skip to content

Commit 50f8203

Browse files
committed
Remove start.gg api key field
1 parent 054a4c2 commit 50f8203

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/main/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ app
351351
// dock icon is clicked and there are no other windows open.
352352
if (mainWindow === null) createWindow();
353353
});
354+
355+
store.set('apikey', process.env.STARTGG_API_KEY);
356+
354357
// works for dumb iFrames
355358
session.defaultSession.webRequest.onHeadersReceived({
356359
urls: [

src/renderer/components/VideoSearch.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ const VideoSearch = () => {
231231
const [urlError, setUrlError] = useState(false);
232232
const [slugError, setSlugError] = useState(false);
233233

234-
const onChangeFunc = (value: any) => {
235-
window.electron.store.set('apikey', value);
236-
};
234+
// const onChangeFunc = (value: any) => {
235+
// window.electron.store.set('apikey', value);
236+
// };
237237

238238
useEffect(() => {
239239
if (
@@ -277,14 +277,14 @@ const VideoSearch = () => {
277277
});
278278

279279
return (
280-
<Box className="background-card">
281-
{HiddenTextField(
280+
<Box className="background-card" sx={{ height: '50vh' }}>
281+
{/* {HiddenTextField(
282282
'Start.GG API Key',
283283
'https://start.gg/admin/profile/developer',
284284
window.electron.store.get('apikey'),
285285
onChangeFunc,
286286
false
287-
)}
287+
)} */}
288288
<TextField
289289
error={slugError}
290290
className="textfield"

0 commit comments

Comments
 (0)