Skip to content

Commit

Permalink
Add dummy navigator.userAgent property to JavaScript context
Browse files Browse the repository at this point in the history
Fixes #231
  • Loading branch information
0xced committed Feb 10, 2016
1 parent 3e21747 commit dd8a141
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#### Version 2.5.1

* Adaptation to YouTube API change. (#231)
* Fixed compilation issue with Xcode 7.3 beta. (#228)

#### Version 2.5.0
Expand Down
4 changes: 3 additions & 1 deletion XCDYouTubeKit/XCDYouTubePlayerScript.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ - (instancetype) initWithString:(NSString *)string
@"location": @{
@"hash": @""
},
@"navigator": @{},
@"navigator": @{
@"userAgent": @""
},
};
_context[@"window"] = @{};
for (NSString *propertyName in environment)
Expand Down

0 comments on commit dd8a141

Please sign in to comment.