touchstudy-core 0.1.78 → 0.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -834,6 +834,7 @@ var useLogin$1 = function useLogin(homeAcademyUrl, homeUrl) {
834
834
  scope: "email"
835
835
  });
836
836
  };
837
+ console.info("GOOGLE_CLIENT_ID: ", GOOGLE_CLIENT_ID);
837
838
  !!gapiScript.gapi && gapiScript.gapi.load("client:auth2", start);
838
839
  }, [gapiScript.gapi]);
839
840
  React.useEffect(function () {
@@ -16758,9 +16759,13 @@ var PrintExamView2 = function PrintExamView2(_ref) {
16758
16759
  var examSessionId = _ref2.examSessionId,
16759
16760
  studentId = _ref2.studentId,
16760
16761
  code = _ref2.code;
16762
+ var width = 200;
16763
+ var height = 200;
16764
+ var left = window.screenX + window.outerWidth / 2 - width / 2;
16765
+ var top = window.screenY + window.outerHeight / 2 - height / 2;
16761
16766
  var url = isTeacher ? window.location.origin + "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print" : window.location.origin + "/student/exam-results/" + code + "/print";
16762
16767
  var windowName = isTeacher ? "popup-" + examSessionId + "-" + studentId : "popup-" + code;
16763
- var windowSpecs = "left=" + (window.innerWidth - 100) + ",top=" + (window.innerHeight - 100) + ",width=100,height=100,location=yes,resizable=yes,scrollbars=yes,status=yes";
16768
+ var windowSpecs = "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",location=yes,resizable=yes,scrollbars=yes,status=yes";
16764
16769
  var childWindow = window.open(url, windowName, windowSpecs);
16765
16770
  if (childWindow == null) {
16766
16771
  setErrorLinks(function (prev) {