Skip to content

Commit

Permalink
Merge pull request #375 from arjunyel/patch-1
Browse files Browse the repository at this point in the history
Update CDN links
  • Loading branch information
surma authored Oct 7, 2019
2 parents 8670c61 + dc451bb commit 08e43da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Comlink turns this messaged-based API into a something more developer-friendly b
**main.js**

```javascript
import * as Comlink from "https://unpkg.com/comlink@alpha/dist/esm/comlink.mjs";
import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs";
async function init() {
const worker = new Worker("worker.js");
// WebWorkers use `postMessage` and therefore work with Comlink.
Expand All @@ -51,7 +51,7 @@ init();
**worker.js**

```javascript
importScripts("https://unpkg.com/comlink@alpha/dist/umd/comlink.js");
importScripts("https://unpkg.com/comlink/dist/umd/comlink.js");
// importScripts("../../../dist/umd/comlink.js");

const obj = {
Expand All @@ -69,7 +69,7 @@ Comlink.expose(obj);
**main.js**

```javascript
import * as Comlink from "https://unpkg.com/comlink@alpha/dist/esm/comlink.mjs";
import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs";
// import * as Comlink from "../../../dist/esm/comlink.mjs";
function callback(value) {
alert(`Result: ${value}`);
Expand All @@ -84,7 +84,7 @@ init();
**worker.js**

```javascript
importScripts("https://unpkg.com/comlink@alpha/dist/umd/comlink.js");
importScripts("https://unpkg.com/comlink/dist/umd/comlink.js");
// importScripts("../../../dist/umd/comlink.js");

async function remoteFunction(cb) {
Expand Down

0 comments on commit 08e43da

Please sign in to comment.