mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 15:06:17 +08:00
DEV: Remove Discourse.Mobile
This commit is contained in:
parent
eed7983404
commit
22af44ac49
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user