Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Snekw committed Apr 5, 2024
1 parent 94b9b16 commit ad6721d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const lcjs = require('@arction/lcjs')
// Extract required parts from LightningChartJS.
const { lightningChart, MapTypes, Themes } = lcjs

const mapChart = lightningChart().Map({
const mapChart = lightningChart({
resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
}).Map({
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
type: MapTypes.World,
})

0 comments on commit ad6721d

Please sign in to comment.