Skip to content

Commit

Permalink
fix: perceptor (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyantong2000 authored Mar 5, 2025
1 parent ef8d26c commit 33f4671
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 33f4671

Please sign in to comment.