Skip to content

Commit

Permalink
Update example_rating.js
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWDG authored Aug 23, 2024
1 parent 79559fc commit ac3b5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ if (evaluateScripts === 'undefined') var evaluateScripts = {} // Eslint error.
/**
* PLEASE NOTE THAT CALLBACK WILL NOT WORK.
*/
evaluateScripts(['https://wdg.github.io/tvOS.js/tvOS.js'], function (success) {
evaluateScripts(['https://0xwdg.github.io/tvOS.js/tvOS.js'], function (success) {
if (success) {
tvOS.RatingView('TV Demo Rating', '0.5', function (event) {
console.log(event)

tvOS.alert('Vote', tvOS.toStar(event) + ' (' + tvOS.toHuman(event) + ')', ['Ok', 'Cancel'], function (e) {
if (e === 'Ok') {
tvOS.location('https://wdg.github.io/tvOS.js/index.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/index.js')
} else {
tvOS.dismiss()
}
Expand Down

0 comments on commit ac3b5f5

Please sign in to comment.