DEV: Remove Discourse.Mobile

This commit is contained in:
Robin Ward 2020-05-11 16:13:29 -04:00
parent eed7983404
commit 22af44ac49

View File

@ -1,4 +1,3 @@
import deprecated from "discourse-common/lib/deprecated";
import ENV from "discourse-common/config/environment";
let mobileForced = false;
@ -65,13 +64,4 @@ export function resetMobile() {
mobileForced = false;
}
Object.defineProperty(Discourse, "Mobile", {
get() {
deprecated(
"`Discourse.Mobile` is deprecated, use `this.site.mobileView` instead"
);
return Mobile;
}
});
export default Mobile;