Skip to content

Commit 4417162

Browse files
committed
Added comment to explain hack
1 parent 6b780b1 commit 4417162

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

make-example-search-worker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ fs.mkdir(siteConfig.dest, function() {
3131
}
3232
}
3333
}).then(function(){
34-
console.log('Replacing "window" with "self"');
34+
// Work around for https://github.com/stealjs/steal-tools/issues/775
35+
console.info('Replacing "window" with "self"');
3536
fs.readFile(dest, 'utf8', function(err, file){
3637
if(err) return console.error(err);
3738
file = file.replace(/window/gmi, 'self');
3839
fs.writeFile(dest, file, function(err){
3940
if(err) return console.error(err);
40-
console.log('Done');
41+
console.info('Done');
4142
});
4243
});
4344
});

0 commit comments

Comments
 (0)