Skip to content

Commit

Permalink
Merge pull request #249 from Carifio24/hips-url-and-message-handlers
Browse files Browse the repository at this point in the history
Update HiPS URL and message handler setup
  • Loading branch information
pkgw authored May 24, 2023
2 parents 9ca75c9 + 37414f2 commit 5d51231
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions research-app/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ const App = defineComponent({
lastSelectedSource: null as Source | null,
selectionProximity: 4,
hideAllChrome: false,
hipsUrl: "http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=hips", // Temporary
hipsUrl: `${window.location.protocol}//www.worldwidetelescope.org/wwtweb/catalog.aspx?W=hips`, // Temporary
isPointerMoving: false,
messageQueue: [] as Message[],
pointerMoveThreshold: 6,
Expand Down Expand Up @@ -2858,7 +2858,9 @@ const App = defineComponent({
this.loadImageCollection({
url: this.hipsUrl,
loadChildFolders: true,
}).then(() => {
}).catch((error) => {
console.error(error);
}).finally(() => {
// Handle the query script
// We (potentially) need the catalogs to have finished loading for this
if (script !== null) {
Expand Down

0 comments on commit 5d51231

Please sign in to comment.