Skip to content

Commit

Permalink
Merge pull request #126 from FrenjaminBanklin/issue/124-add-score-scr…
Browse files Browse the repository at this point in the history
…een-url-to-post-message

Add URL of score screen to score screen's post message.
  • Loading branch information
clpetersonucf authored Nov 10, 2021
2 parents 4c7d5b8 + c731c35 commit 4eceac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/controllers/ctrl-score-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ app.controller('ScorePageController', function (Please, $scope, $q, $timeout, Wi
// scores embed URL this will need to be modified!
let isEmbedded = /embed\//i.test(document.URL) // /preview-embed/xxx and /embed/xxxx
let isPreview = /\/preview/i.test(document.URL) // /preview/xxx and /preview-embed/xxxx
console.log(isEmbedded, isPreview, 'isembed, is preview?')
let _graphData = []

// We don't want users who click the 'View more details' link via an LTI to play again, since at that point
Expand Down Expand Up @@ -553,6 +552,7 @@ app.controller('ScorePageController', function (Please, $scope, $q, $timeout, Wi
source: 'score-controller',
widget: widgetInstance,
score,
score_url: window.location.href,
}),
'*'
)
Expand Down

0 comments on commit 4eceac9

Please sign in to comment.