DEV: Remove development-only DiscourseURL global (#24869)

I don't think anyone is actually using this, and the change won't affect production because it was only happening in development/test.
This commit is contained in:
David Taylor
2023-12-13 12:41:36 +00:00
committed by GitHub
parent e5824c5d88
commit 5e4a730366

View File

@@ -1,5 +1,3 @@
import DiscourseURL from "discourse/lib/url";
import { isDevelopment } from "discourse-common/config/environment";
import discourseLater from "discourse-common/lib/later";
import { bind } from "discourse-common/utils/decorators";
@@ -30,11 +28,6 @@ export default {
});
}
// Useful to export this for debugging purposes
if (isDevelopment()) {
window.DiscourseURL = DiscourseURL;
}
// Observe file changes
this.messageBus.subscribe(
"/file-change",