Skip to content

Commit

Permalink
Undo rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Latropos committed Oct 16, 2024
1 parent a7502ca commit 775272d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ - (void)makeSnapshotForView:(REAUIView *)view
withOffsetY:(double)offsetY
{
#if TARGET_OS_OSX
NSView *mainWindowView = UIApplication.sharedApplication.keyWindow.contentView;
NSView *mainWindow = UIApplication.sharedApplication.keyWindow.contentView;
#else
REAUIView *mainWindow = RCTKeyWindow();
#endif
CGPoint absolutePosition = [[view superview] convertPoint:view.center toView:mainWindowView];
CGPoint absolutePosition = [[view superview] convertPoint:view.center toView:mainWindow];
_values = [NSMutableDictionary new];
#if TARGET_OS_OSX
_values[@"windowWidth"] = [NSNumber numberWithDouble:mainWindowView.frame.size.width];
_values[@"windowHeight"] = [NSNumber numberWithDouble:mainWindowView.frame.size.height];
_values[@"windowWidth"] = [NSNumber numberWithDouble:mainWindow.frame.size.width];
_values[@"windowHeight"] = [NSNumber numberWithDouble:mainWindow.frame.size.height];
#else
_values[@"windowWidth"] = [NSNumber numberWithDouble:mainWindow.bounds.size.width];
_values[@"windowHeight"] = [NSNumber numberWithDouble:mainWindow.bounds.size.height];
Expand Down

0 comments on commit 775272d

Please sign in to comment.