Skip to content

Commit

Permalink
idの空白文字を_に置き換えた
Browse files Browse the repository at this point in the history
  • Loading branch information
Appbird committed Sep 2, 2021
1 parent 36ebe78 commit 7d905a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/client/view/parts/GameModeRuleView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class GameModeRuleView {
setHeader({ title, description,ruleName, iconCSS }: { title: string; ruleName:string; description?: string; iconCSS: string; }) {
this.headerSegment.innerHTML = "";
const header = new TitleCupsuled(appendElement(this.headerSegment, "div"));
header.refresh(title, ruleName, { iconCSS,chara:"u-smallerChara",id:ruleName });
header.refresh(title, ruleName, { iconCSS,chara:"u-smallerChara",id:ruleName.replace(/\s/g,"_") });
appendElement(this.headerSegment, "p", "u-smallerChara u-width90per").innerHTML = description || ""
}
setRule({ appliedClass }: { appliedClass: AppliedRuleClassResolved[]; }) {
Expand Down

0 comments on commit 7d905a2

Please sign in to comment.