2017-05-13 13:25:33 +02:00
|
|
|
'use strict';
|
|
|
|
|
2016-05-16 13:33:49 +02:00
|
|
|
self.console || (self.console = { 'log': function() {} });
|
|
|
|
|
|
|
|
addEventListener('message', function(e) {
|
|
|
|
if (e.data) {
|
|
|
|
try {
|
|
|
|
importScripts('../' + e.data);
|
|
|
|
} catch (e) {
|
|
|
|
var lineNumber = e.lineNumber,
|
|
|
|
message = (lineNumber == null ? '' : (lineNumber + ': ')) + e.message;
|
|
|
|
|
|
|
|
self._ = { 'VERSION': message };
|
|
|
|
}
|
|
|
|
postMessage(_.VERSION);
|
|
|
|
}
|
2017-05-13 13:25:33 +02:00
|
|
|
});
|