File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed
app/overmind/effects/vscode/SandboxFsSync Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ class SandboxFsSync {
4141 } ;
4242 } = { } ;
4343
44- private deps : { [ path : string ] : string } = {
45- '@types/jest' : 'latest' ,
46- } ;
44+ private deps : { [ path : string ] : string } = { } ;
4745
4846 private workerIds : string [ ] = [ ] ;
4947
@@ -222,6 +220,13 @@ class SandboxFsSync {
222220 const newDepsKeys = Object . keys ( newDeps ) ;
223221 const currentDepsKeys = Object . keys ( this . deps ) ;
224222
223+ if ( currentDepsKeys . length === 0 ) {
224+ added . push ( {
225+ name : '@types/jest' ,
226+ version : 'latest' ,
227+ } ) ;
228+ }
229+
225230 newDepsKeys . forEach ( newDepKey => {
226231 if (
227232 ! this . deps [ newDepKey ] ||
Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ export function resetOverlay() {
99 const delay = Date . now ( ) - iframeRenderedAt > 1000 ? 0 : 1000 ;
1010
1111 setTimeout ( ( ) => {
12- iframeReference . style . opacity = '0' ;
13- setTimeout ( ( ) => {
14- if ( iframeReference . parentNode ) {
15- document . body . removeChild ( iframeReference ) ;
16- }
17- } , 500 ) ;
12+ if ( iframeReference ) {
13+ iframeReference . style . opacity = '0' ;
14+ setTimeout ( ( ) => {
15+ if ( iframeReference . parentNode ) {
16+ document . body . removeChild ( iframeReference ) ;
17+ }
18+ } , 500 ) ;
19+ }
1820 } , delay ) ;
1921 } catch ( e ) {
2022 /* nothing */
You can’t perform that action at this time.
0 commit comments