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 +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -833,6 +833,7 @@ var useLogin$1 = function useLogin(homeAcademyUrl, homeUrl) {
|
|
833
833
|
scope: "email"
|
834
834
|
});
|
835
835
|
};
|
836
|
+
console.info("GOOGLE_CLIENT_ID: ", GOOGLE_CLIENT_ID);
|
836
837
|
!!gapi && gapi.load("client:auth2", start);
|
837
838
|
}, [gapi]);
|
838
839
|
useEffect(function () {
|
@@ -16760,9 +16761,13 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16760
16761
|
var examSessionId = _ref2.examSessionId,
|
16761
16762
|
studentId = _ref2.studentId,
|
16762
16763
|
code = _ref2.code;
|
16764
|
+
var width = 200;
|
16765
|
+
var height = 200;
|
16766
|
+
var left = window.screenX + window.outerWidth / 2 - width / 2;
|
16767
|
+
var top = window.screenY + window.outerHeight / 2 - height / 2;
|
16763
16768
|
var url = isTeacher ? window.location.origin + "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print" : window.location.origin + "/student/exam-results/" + code + "/print";
|
16764
16769
|
var windowName = isTeacher ? "popup-" + examSessionId + "-" + studentId : "popup-" + code;
|
16765
|
-
var windowSpecs = "left=" +
|
16770
|
+
var windowSpecs = "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",location=yes,resizable=yes,scrollbars=yes,status=yes";
|
16766
16771
|
var childWindow = window.open(url, windowName, windowSpecs);
|
16767
16772
|
if (childWindow == null) {
|
16768
16773
|
setErrorLinks(function (prev) {
|