mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 13:43:45 +08:00
acba7d2a5d
* extract omniauth auth complete inline JS * extract Ember error logging inline JS * transpile `authentication-complete` This is CSP related work
18 lines
446 B
JavaScript
18 lines
446 B
JavaScript
(function() {
|
|
const authenticationData = JSON.parse(
|
|
document.getElementById("data-authentication").dataset.authenticationData
|
|
);
|
|
|
|
Discourse.showingSignup = true;
|
|
require("discourse/routes/application").default.reopen({
|
|
actions: {
|
|
didTransition: function() {
|
|
Em.run.next(function() {
|
|
Discourse.authenticationComplete(authenticationData);
|
|
});
|
|
return this._super();
|
|
}
|
|
}
|
|
});
|
|
})();
|