Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isWildcard
1 parent 45eacd3 commit c6106eeCopy full SHA for c6106ee
src/index.ts
@@ -28,6 +28,10 @@ function task(): Promise<void> {
28
return new Promise(resolve => setTimeout(resolve, 0))
29
}
30
31
+function isWildcard(accept: string | null) {
32
+ return accept && !!accept.split(',').find(x => x.match(/^\s*\*\/\*/))
33
+}
34
+
35
async function handleData(el: IncludeFragmentElement) {
36
observer.unobserve(el)
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) {
- return accept && !!accept.split(',').find(x => x.match(/^\s*\*\/\*/))
-}
-
115
export default class IncludeFragmentElement extends HTMLElement {
116
static get observedAttributes(): string[] {
117
return ['src', 'loading']
0 commit comments