Skip to content

Commit

Permalink
upd: theme sass cdn request
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Mar 18, 2022
1 parent 3dd022a commit 3ab1cbd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/sites/assets/util/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,9 @@ export const useThemeEditor = function () {
} as any;
const customUrl = param && source[param.replace('/', '')];
if (customUrl) {
Promise.all([
getSassVariables(customUrl),
loadScript('https://cdnout.com/sass.js/sass.sync.min.js'),
getRawSassStyle()
]);
loadScript('https://cdnout.com/sass.js/sass.sync.min.js').then((res) => {
Promise.all([getSassVariables(customUrl), getRawSassStyle()]);
});
store.init = true;
}
}
Expand Down

0 comments on commit 3ab1cbd

Please sign in to comment.