diff --git a/truthseeker/__init__.py b/truthseeker/__init__.py index 87a0a1d..910cba5 100644 --- a/truthseeker/__init__.py +++ b/truthseeker/__init__.py @@ -23,7 +23,7 @@ class TruthSeekerApp(flask.Flask): self.config["SECRET_KEY"] = os.getenv("FLASK_SECRET") - self.socketio_app = SocketIO(self) + self.socketio_app = SocketIO(self,cors_allowed_origins=["https://truthinquiry.simailadjalim.fr"]) self.discord_bot = discord_bot.DiscordBot() token = os.getenv("DISCORD_BOT_TOKEN") diff --git a/truthseeker/static/js/game.js b/truthseeker/static/js/game.js index f152989..fdbfedb 100644 --- a/truthseeker/static/js/game.js +++ b/truthseeker/static/js/game.js @@ -23,7 +23,7 @@ function hideIntroduction(){ document.getElementsByClassName("introduction")[0].classList.add("hidden"); } function setListenerToIntroductionNextBtn(){ - document.getElementById("introduction_next_btn").addEventListener("click", showInterogation) + document.getElementById("introduction_next_btn").addEventListener("click", showInterogationView) } function setListenerToInterrogationNextBtn(){