Skip to content

Commit

Permalink
feat: external block loading extension
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnuescheler committed Feb 17, 2023
1 parent f1205b9 commit 21964d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async function loadDemoConfig() {
const resp = await fetch(`${demoBase}/theme.json?sheet=default&sheet=blocks`);
if (resp.status === 200) {
const json = await resp.json();
const tokens = json.default.data;
const tokens = json.data || json.default.data;
const root = document.querySelector(':root');
tokens.forEach((e) => {
root.style.setProperty(`--${e.token}`, `${e.value}`);
Expand Down

0 comments on commit 21964d4

Please sign in to comment.