Skip to content

Commit

Permalink
关闭答题器
Browse files Browse the repository at this point in the history
  • Loading branch information
Loren-Wang committed Sep 27, 2024
1 parent 3466cc3 commit a06dcd9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/gallery/scene/quiz/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ export class FcrPopupQuizWidget extends FcrUISceneWidget {
return role === 0;
}
async onInstall(controller: AgoraWidgetController) {
await addResource();
// await addResource();

controller.broadcast(AgoraExtensionWidgetEvent.RegisterCabinetTool, {
id: this.widgetName,
name: transI18n('fcr_popup_quiz'),
iconType: SvgIconEnum.FCR_V2_ANSWER,
});
// controller.broadcast(AgoraExtensionWidgetEvent.RegisterCabinetTool, {
// id: this.widgetName,
// name: transI18n('fcr_popup_quiz'),
// iconType: SvgIconEnum.FCR_V2_ANSWER,
// });
}

onUninstall(controller: AgoraWidgetController) {
controller.broadcast(AgoraExtensionWidgetEvent.UnregisterCabinetTool, this.widgetName);
// controller.broadcast(AgoraExtensionWidgetEvent.UnregisterCabinetTool, this.widgetName);
}

@action
Expand Down

0 comments on commit a06dcd9

Please sign in to comment.