fix analytics hub lunch_url

How the launch url was to be stored changed, but this code wasn't
updated to reflect that.

closes EAX-745
flag=analytics_hub

test plan:
 - Launch the analytics hub with a launch url defined in dynamics
   settings vs the fallback of localhost:3002

Change-Id: I1b99016397fb28202d0bc46aedbdb8057f8c3699
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/346972
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Keith Garner <kgarner@instructure.com>
This commit is contained in:
Keith T. Garner 2024-05-06 12:22:44 -05:00 committed by Keith Garner
parent 3b4d88479d
commit 65b45cb2ab
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ exports.fetchSpeedGraderLibrary = fetchSpeedGraderLibrary
function fetchAnalyticsHub(resolve, reject) {
const script = document.createElement('script')
script.src = window.REMOTES?.analyticsHub || 'http://localhost:3002/remoteEntry.js'
script.src = window.REMOTES?.analytics_hub?.launch_url || 'http://localhost:3002/remoteEntry.js'
script.onload = () => {
const module = {
get: request => window.AnalyticsHub.get(request),