Revert "DEV: Fix a deprecated `ember` import (#9903)"

This reverts commit 75f46ca632.

This unfortunately breaks

`RAILS_ENV=production bin/rake assets:precompile`

I don't think discourse-loader.js is transpiled
This commit is contained in:
Sam Saffron 2020-05-28 10:04:08 +10:00
parent ee60488e6a
commit 9841569bba
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5
2 changed files with 3 additions and 4 deletions

View File

@ -29,7 +29,6 @@ var define, requirejs;
inject: Ember.inject.controller
},
"@ember/debug": {
isTesting: () => Ember.testing,
warn: Ember.warn
},
"@ember/object": {

View File

@ -1,9 +1,9 @@
import EmberObject from "@ember/object";
import { isTesting } from "@ember/debug";
import Ember from "ember";
export default EmberObject.create({
reload() {
if (!isTesting()) {
reload: function() {
if (!Ember.testing) {
location.reload();
}
}