title: WKWebView web worker throws error "Dom Exception 18 returns an error."
body: <p>I am writing an app using PhoneGap. I want to use javascript Web Worker. It works fine on Android. It also works on iOS with UIWebView.</p>
  
  <p>I would like to use WKWebView in iOS 9. I tried to read the <code>.txt</code> files in a local folder successfully using cordova-plugin-file.</p>
  
  <p>I have used the following tutorial:
  <a href="https://www.scirra.com/blog/ashley/25/hacking-something-useful-out-of-wkwebview" rel="nofollow">https://www.scirra.com/blog/ashley/25/hacking-something-useful-out-of-wkwebview</a></p>
  
  <p>But this did not solve it...</p>
  
  <pre><code>new Worker ('js/tested.js');
  Dom Exception 18 returns an error.
  new Worker ('www/js/tested.js');
  Dom Exception 18 returns an error.
  </code></pre>
  
  <p>I tried to specify the full path to worker javascript file, but I get the same error:</p>
  
  <pre><code>new Worker (file_path+'js/tested.js');
  Dom Exception 18 returns an error.
  </code></pre>
  
  <p>So how to create the worker?</p>