File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import Component from '@glimmer/component' ;
2
- import { inject as service } from '@ember/service' ;
2
+ import * as s from '@ember/service' ;
3
3
import { getOwner } from '@ember/application' ;
4
4
import DataTransferWrapper from '../system/data-transfer-wrapper.ts' ;
5
5
import { action } from '@ember/object' ;
@@ -14,6 +14,8 @@ import {
14
14
} from '../interfaces.ts' ;
15
15
import DragListenerModifier from '../system/drag-listener-modifier.ts' ;
16
16
17
+ const service = s . service ?? s . inject ;
18
+
17
19
/**
18
20
`FileDropzone` is a component that will allow users to upload files by
19
21
drag and drop.
Original file line number Diff line number Diff line change 1
1
import Helper from '@ember/component/helper' ;
2
2
import { registerDestructor } from '@ember/destroyable' ;
3
- import { inject as service } from '@ember/service' ;
3
+ import * as s from '@ember/service' ;
4
4
import type { UploadFile } from '../upload-file.ts' ;
5
5
import type FileQueueService from '../services/file-queue.ts' ;
6
6
import { DEFAULT_QUEUE } from '../services/file-queue.ts' ;
7
7
import type { FileQueueSignature , QueueListener } from '../interfaces.ts' ;
8
8
9
+ const service = s . service ?? s . inject ;
10
+
9
11
/**
10
12
* `file-queue` helper is one of the core primitives of ember-file-upload.
11
13
*
You can’t perform that action at this time.
0 commit comments