@@ -111,7 +111,9 @@ const windows = (
111111 let windowOrder = state . windowOrder ;
112112 if ( ( action as any ) . window != null ) {
113113 windowOrder = [
114- ...state . windowOrder . filter ( ( windowId ) => windowId !== ( action as any ) . window ) ,
114+ ...state . windowOrder . filter (
115+ ( windowId ) => windowId !== ( action as any ) . window
116+ ) ,
115117 ( action as any ) . window ,
116118 ] ;
117119 }
@@ -120,7 +122,9 @@ const windows = (
120122 const { canShade } = state . genWindows [ ( action as any ) . windowId ] ;
121123 if ( ! canShade ) {
122124 throw new Error (
123- `Tried to shade/unshade a window that cannot be shaded: ${ ( action as any ) . windowId } `
125+ `Tried to shade/unshade a window that cannot be shaded: ${
126+ ( action as any ) . windowId
127+ } `
124128 ) ;
125129 }
126130 return {
@@ -160,7 +164,9 @@ const windows = (
160164 const { canResize } = state . genWindows [ ( action as any ) . windowId ] ;
161165 if ( ! canResize ) {
162166 throw new Error (
163- `Tried to resize a window that cannot be resized: ${ ( action as any ) . windowId } `
167+ `Tried to resize a window that cannot be resized: ${
168+ ( action as any ) . windowId
169+ } `
164170 ) ;
165171 }
166172 return {
@@ -177,7 +183,9 @@ const windows = (
177183 return {
178184 ...state ,
179185 positionsAreRelative :
180- ( action as any ) . absolute === true ? false : state . positionsAreRelative ,
186+ ( action as any ) . absolute === true
187+ ? false
188+ : state . positionsAreRelative ,
181189 genWindows : Utils . objectMap ( state . genWindows , ( w , windowId ) => {
182190 const newPosition = ( action as any ) . positions [ windowId ] ;
183191 if ( newPosition == null ) {
@@ -196,8 +204,8 @@ const windows = (
196204 } ) ) ,
197205 } ;
198206 case "LOAD_SERIALIZED_STATE" : {
199- const { genWindows, focused, positionsAreRelative } =
200- ( action as any ) . serializedState . windows ;
207+ const { genWindows, focused, positionsAreRelative } = ( action as any )
208+ . serializedState . windows ;
201209 return {
202210 ...state ,
203211 positionsAreRelative,
@@ -216,7 +224,10 @@ const windows = (
216224 case "BROWSER_WINDOW_SIZE_CHANGED" :
217225 return {
218226 ...state ,
219- browserWindowSize : { height : ( action as any ) . height , width : ( action as any ) . width } ,
227+ browserWindowSize : {
228+ height : ( action as any ) . height ,
229+ width : ( action as any ) . width ,
230+ } ,
220231 } ;
221232
222233 default :
0 commit comments