瀏覽代碼

refactor: made sure Recaptcha is no longer loaded after the register modal has closed

Kristian Vos 5 年之前
父節點
當前提交
3653b394cf
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      frontend/store/modules/modals.js

+ 1 - 0
frontend/store/modules/modals.js

@@ -32,6 +32,7 @@ const getters = {};
 
 const actions = {
 	closeModal: ({ commit }, data) => {
+		if (data.modal === "register") window.location.reload();
 		commit("closeModal", data);
 	},
 	openModal: ({ commit }, data) => {