File tree Expand file tree Collapse file tree
src/chat/interface/mediaengine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ var dialog = require("../../../dialogs.js");
33var sws = require ( "../sharedwebsocket.js" ) ;
44var userState = require ( "../userstate.js" ) ;
55var uploadFileAsURL = require ( "../uploadfiles.js" ) ;
6+ var accountHelper = require ( "../../../accounthelper/index.js" ) ;
67
78var movingMediaTexts = [
89 "Loading up the shrek videos..." ,
@@ -911,8 +912,13 @@ async function doMediaSelect() {
911912
912913 try {
913914 loadingMediaDiv . remove ( ) ;
914-
915- const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/#${ Math . round ( Date . now ( ) ) } ` ;
915+ var username = "player" ;
916+ if ( accountHelper . getCurrentValidationState ( ) ) {
917+ username =
918+ accountHelper . getCurrentValidationState ( )
919+ . username ;
920+ }
921+ const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/?username=${ encodeURIComponent ( username ) } &id=${ Math . round ( Date . now ( ) ) } ` ;
916922
917923 sws . send (
918924 JSON . stringify ( {
Original file line number Diff line number Diff line change 1- {"timestamp" :" 1761657665548 " }
1+ {"timestamp" :" 1761662553482 " }
You can’t perform that action at this time.
0 commit comments