0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

Removed conditional statement that would always be true

Dieser Commit ist enthalten in:
Wan Bachtiar 2022-11-17 08:59:53 +11:00
Ursprung d6ee1501d1
Commit 5b923f3340

Datei anzeigen

@ -37,10 +37,7 @@ export default Controller.extend({
@discourseComputed("wizard.id")
wizardUrl(wizardId) {
let baseUrl = window.location.href.split("/admin");
if (baseUrl.length > 1) {
return baseUrl[0] + "/w/" + dasherize(wizardId);
}
return window.location.origin + "/w/" + dasherize(wizardId);
return baseUrl[0] + "/w/" + dasherize(wizardId);
},
@discourseComputed("wizard.after_time_scheduled")