{"action":"opened","issue":{"url":"https://api.github.com/repos/mattslocum/ng-webworker/issues/13","labels_url":"https://api.github.com/repos/mattslocum/ng-webworker/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mattslocum/ng-webworker/issues/13/comments","events_url":"https://api.github.com/repos/mattslocum/ng-webworker/issues/13/events","html_url":"https://github.com/mattslocum/ng-webworker/issues/13","id":126635233,"number":13,"title":"importScripts not working ","user":{"login":"daupawar","id":5126613,"avatar_url":"https://avatars.githubusercontent.com/u/5126613?v=3","gravatar_id":"","url":"https://api.github.com/users/daupawar","html_url":"https://github.com/daupawar","followers_url":"https://api.github.com/users/daupawar/followers","following_url":"https://api.github.com/users/daupawar/following{/other_user}","gists_url":"https://api.github.com/users/daupawar/gists{/gist_id}","starred_url":"https://api.github.com/users/daupawar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daupawar/subscriptions","organizations_url":"https://api.github.com/users/daupawar/orgs","repos_url":"https://api.github.com/users/daupawar/repos","events_url":"https://api.github.com/users/daupawar/events{/privacy}","received_events_url":"https://api.github.com/users/daupawar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-14T11:26:47Z","updated_at":"2016-01-14T11:26:47Z","closed_at":null,"body":"\r\nIf i use `importScripts` in my code i am getting this error\r\n```javascript\r\nerror { target: Worker, isTrusted: true, message: \": NS_ERROR_FAILURE: \", filename: \"blob:http://localhost:3001/47ef41ed-795d-9e43-9521-b41ca6e9d42d\", lineno: 19, colno: 0, eventPhase: 0, bubbles: false, cancelable: true, defaultPrevented: false, timeStamp: 1452770421525598 }\r\n```\r\nI want to use [http://pdfmake.org/#/] in my code \r\nhere is my code\r\n\r\n```javascript\r\nvar onRendered = function () {\r\n                if ('function' === typeof importScripts) {\r\n                    var document = {'createElementNS': function () {\r\n                            return {};\r\n                        }};\r\n                    var window = this;\r\n                    importScripts('pdfmake.js', 'vfs_fonts.js');\r\n                    var ddd = {\r\n                        content: [\r\n                            'First paragraph',\r\n                            'Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines'\r\n                        ]\r\n                    };\r\n                    pdfMake.createPdf(ddd).getBase64(function (base64) {\r\n                        postMessage({action: 'gen_pdf', base64: base64});\r\n                    });\r\n                }\r\n            };\r\n            var myWorker = Webworker.create(onRendered, {async: true});\r\n            myWorker.run().then(function (result) {\r\n                alert(\"Answer: \" + result);\r\n            }, function (event) {\r\n                console.log(event);\r\n            }, function (progress) {\r\n                // promise has a notification\r\n                console.log(progress);\r\n            });\r\n```\r\n\r\nWhats wrong with my code"}}