Skip to content

Instantly share code, notes, and snippets.

Avatar
😜

Eric Wooley ericwooley

😜
View GitHub Profile
@ericwooley
ericwooley / webworker.js
Created Oct 11, 2016
Web worker from local function
View webworker.js
function testFunction () {
console.log('webworker success')
}
var worker = new Worker(URL.createObjectURL(new Blob(['(' + testFunction.toString() + ')()'], {type: 'application/javascript'})))
View gist:a0e8fe9dcd2e4f8fdecf
Verifying that +ericwooley is my blockchain ID. https://onename.com/ericwooley