Skip to content

Commit

Permalink
πŸŒˆπŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Oct 2, 2023
1 parent 63c286f commit b9c7186
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ See [index.html](./index.html)
To use this extension, include the following line in your ReSpec file:

```html
<script class="remove" src="https://cdn.jsdelivr.net/gh/transmute-industries/[email protected].5/dist/main.js"></script>
<script class="remove" src="https://cdn.jsdelivr.net/gh/transmute-industries/[email protected].13/dist/main.js"></script>
```

2 changes: 1 addition & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<title>Respec Service Worker Plugin Test</title>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />
<script src='https://www.w3.org/Tools/respec/respec-w3c' class='remove'></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/uPlot.min.css">
<link rel="stylesheet" href="./vc-jose-cose.css">
<script src='./vc-jose-cose.js'></script>
<script type="text/javascript" class="remove">
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { eventHandler } from "./src/eventHandler";

self.allowCrossOrigin();

self.addEventListener("message", eventHandler);
4 changes: 3 additions & 1 deletion vc-jose-cose.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ async function postProcessWithWorker() {
const example = examples[index]
const alg = example.getAttribute('data-alg') || 'ES384'
const json = JSON.parse(example.innerText.replace(/\/\/ .*$/gm, ''))
const work = new Worker("./dist/main.js");
// const work = new Worker("./dist/main.js");
const work = new Worker("https://cdn.jsdelivr.net/gh/transmute-industries/[email protected]/dist/main.js");

work.postMessage(factory.produce({ index, alg, json }));
work.onmessage = factory.html(example);
}
Expand Down

0 comments on commit b9c7186

Please sign in to comment.