File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ function task(): Promise<void> {
28
28
return new Promise ( resolve => setTimeout ( resolve , 0 ) )
29
29
}
30
30
31
+ function isWildcard ( accept : string | null ) {
32
+ return accept && ! ! accept . split ( ',' ) . find ( x => x . match ( / ^ \s * \* \/ \* / ) )
33
+ }
34
+
31
35
async function handleData ( el : IncludeFragmentElement ) {
32
36
observer . unobserve ( el )
33
37
return getData ( el ) . then (
@@ -108,10 +112,6 @@ function fetchDataWithEvents(el: IncludeFragmentElement) {
108
112
)
109
113
}
110
114
111
- function isWildcard ( accept : string | null ) {
112
- return accept && ! ! accept . split ( ',' ) . find ( x => x . match ( / ^ \s * \* \/ \* / ) )
113
- }
114
-
115
115
export default class IncludeFragmentElement extends HTMLElement {
116
116
static get observedAttributes ( ) : string [ ] {
117
117
return [ 'src' , 'loading' ]
You can’t perform that action at this time.
0 commit comments