chore: 🤖 deprecate window object service (#1652)
* chore: 🤖 deprecate window object service Deprecate `browser-object` service in favor of `ember-browser-services` ✅ Closes: ICU-7152 * refactor: 💡 cluster-url test fail commit with cluster-url test failing ✅ Closes: ICU-7152 * refactor: 💡 refactor test to reflect changes Refactor test to reflect `browser/window` service in `cluster-url` route ✅ Closes: ICU-7152 * refactor: 💡 refactor cluster url test change logic of mockIPC to a function call ✅ Closes: ICU-7152
This commit is contained in:
1 parent
0a76111944
commit
3ba53dfc2e
8 files changed
+27
-104
No files matched your search
@@ -22,7 +22,7 @@ class Tag {
|
||||
export default class FormWorkerCreateWorkerLedComponent extends Component {
|
||||
// =services
|
||||
@service features;
|
||||
@service browserObject;
|
||||
@service('browser/window') window;
|
||||
|
||||
// =attributes
|
||||
@tracked generatedWorkerAuthToken;
|
||||
@@ -35,7 +35,7 @@ export default class FormWorkerCreateWorkerLedComponent extends Component {
|
||||
@tracked newWorkerValue;
|
||||
|
||||
get clusterIDFromURL() {
|
||||
const hostname = this.browserObject.hostname;
|
||||
const hostname = this.window?.location?.hostname;
|
||||
|
||||
// Match against a guid with either the prod, int, or dev hcp domain
|
||||
const clusterIDMatcher =
|
||||
|
||||
Reference in new issue
Block a user