touchstudy-core 0.1.122 → 0.1.123
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -20193,8 +20193,9 @@ var usePrintExamResult = function usePrintExamResult(isDataFetching, fileName, t
|
|
20193
20193
|
};
|
20194
20194
|
var _temp3 = _catch(function () {
|
20195
20195
|
function _temp2() {
|
20196
|
-
html2pdf().from(element).set(options).save()
|
20197
|
-
|
20196
|
+
return Promise.resolve(html2pdf().from(element).set(options).save()).then(function () {
|
20197
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
20198
|
+
});
|
20198
20199
|
}
|
20199
20200
|
var element = contentRef.current;
|
20200
20201
|
var options = {
|