File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 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 : [
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments