Skip to content

Commit

Permalink
Initialise variable before HTML that requires it
Browse files Browse the repository at this point in the history
  • Loading branch information
Quitch committed May 31, 2023
1 parent 9e8db35 commit bc2c41f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ if (!copyReplayIDButtonLoaded) {

function copyReplayIDButton() {
try {
model.gameId = ko.observable("");

$(".section_controls").append(
loadHtml(
"coui://ui/mods/com.pa.quitch.copy-replay-id/replay_browser/lobby_id.html"
)
);

model.gameId = ko.observable("");

var formattedId = function () {
if (!model.canViewReplay()) {
return;
Expand Down

0 comments on commit bc2c41f

Please sign in to comment.