Browse Source

Fix feature detection in demo (support old spec)

tags/v0.1.0-src
Gerben 3 years ago
parent
commit
e874b90e91
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      demo.html

+ 1
- 1
demo.html View File

@@ -48,7 +48,7 @@
<em>Detecting failed (or page is loading?)</em>
<script>
window.addEventListener('load', () => {
const fragmentDirective = document.fragmentDirective;
const fragmentDirective = document.fragmentDirective || window.location.fragmentDirective;
const message = (fragmentDirective
? fragmentDirective._implementation === 'text-fragments-ts'
? 'Yes'


Loading…
Cancel
Save