Fixed YosysJS.create_worker() usage of this.url_prefix
authorClifford Wolf <clifford@clifford.at>
Fri, 10 Jul 2015 11:20:57 +0000 (13:20 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 10 Jul 2015 11:20:57 +0000 (13:20 +0200)
misc/yosysjs/yosysjs.js

index eabc0ec5095ac93461522efbf56ec2a95a36f872..ea98c9b51704d3f03fd4abd9d1a750a1be394b64 100644 (file)
@@ -224,7 +224,7 @@ var YosysJS = new function() {
        this.create_worker = function(on_ready) {
                var ys = new Object();
                ys.YosysJS = this;
-               ys.worker = new Worker('yosyswrk.js');
+               ys.worker = new Worker(this.url_prefix + 'yosyswrk.js');
                ys.callback_idx = 1;
                ys.callback_cache = {};
                ys.errmsg = "";