Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pshihn committed Mar 9, 2018
1 parent 3746c23 commit 8f97a3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/workly.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function proxy(obj) {
url = ourl = URL.createObjectURL(new Blob([`${tos.call(randomInt)}\n(${tos.call(expose)})(${tos.call(obj)})`]));
} else if (typeof obj === 'string') {
url = obj;
if (obj.indexOf('blob:') === 0) ourl = url;
}
if (url) {
let wrkr = new Worker(url);
Expand Down
2 changes: 1 addition & 1 deletion dist/workly.min.js

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

1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export function proxy(obj) {
url = ourl = URL.createObjectURL(new Blob([`${tos.call(randomInt)}\n(${tos.call(expose)})(${tos.call(obj)})`]));
} else if (typeof obj === 'string') {
url = obj;
if (obj.indexOf('blob:') === 0) ourl = url;
}
if (url) {
let wrkr = new Worker(url);
Expand Down

0 comments on commit 8f97a3d

Please sign in to comment.