Skip to content

Commit

Permalink
fix: perceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyantong2000 committed Mar 5, 2025
1 parent ef8d26c commit b29f052
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ const renderTo = (container: any) => {

const init = async (): Promise<void> => {
const uiContainer = $('.site-content > .ui.container');
uiContainer.empty();
uiContainer.remove();

const newUiContainer = document.createElement('div');
newUiContainer.className = 'ui container git-project-content';

// create the new one: the percepter container
const percepterContainer = document.createElement('div');
percepterContainer.id = featureId;

uiContainer.append(percepterContainer);
newUiContainer.append(percepterContainer);

$('.site-content').append(newUiContainer);

renderTo(percepterContainer);
};
Expand Down

0 comments on commit b29f052

Please sign in to comment.