mirror of
https://github.com/moodle/moodle.git
synced 2025-07-26 08:50:30 +02:00
11 lines
1.0 KiB
JavaScript
11 lines
1.0 KiB
JavaScript
define("core/moodlenet/oauth2callback",["exports","core/prefetch","core/notification","core/str"],(function(_exports,_prefetch,_notification,_str){var obj;
|
|
/**
|
|
* A module to handle the OAuth2 callback for MoodleNet.
|
|
*
|
|
* @module core/moodlenet/oauth2callback
|
|
* @copyright 2023 Huong Nguyen <huongnv13@gmail.com>
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
* @since 4.2
|
|
*/Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.init=void 0,_prefetch=(obj=_prefetch)&&obj.__esModule?obj:{default:obj};_exports.init=(error,errorDescription)=>{_prefetch.default.prefetchStrings("moodle",["moodlenet:sharefailtitle","error"]),((error,errorDescription)=>{window.opener?(window.opener.moodleNetAuthorize(error,errorDescription),setTimeout((()=>{window.close()}),300)):(0,_notification.alert)((0,_str.get_string)("error","moodle"),(0,_str.get_string)("moodlenet:sharefailtitle","moodle"))})(error,errorDescription)}}));
|
|
|
|
//# sourceMappingURL=oauth2callback.min.js.map
|