Skip to content

Commit

Permalink
refactor(esl-share): update/simplify site config
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Oct 20, 2023
1 parent 8c544e4 commit 5923fe5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 168 deletions.
11 changes: 8 additions & 3 deletions pages/src/localdev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
ESLAnimate,
ESLAnimateMixin,
ESLShare,
ESLShareConfig,
ESLRelatedTarget
} from '@exadel/esl/modules/all';

Expand Down Expand Up @@ -110,8 +111,12 @@ ESLTooltip.register();
ESLAnimate.register();
ESLAnimateMixin.register();

ESLShare.config(() => fetch('/assets/share/config.json').then((response) => response.json()));
ESLShare.register();

// Register ESL Mixins
ESLRelatedTarget.register();

// Share component loading
(async (): Promise<void> => {
await import (/* webpackChunkName: 'esl-share/buttons' */'@exadel/esl/modules/esl-share/buttons/all');
await ESLShareConfig.set(() => fetch('/assets/share/config.json').then((response) => response.json()));
ESLShare.register();
})();
Loading

0 comments on commit 5923fe5

Please sign in to comment.