mirror of https://github.com/emn178/js-md5.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
233 B
JavaScript
13 lines
233 B
JavaScript
![]()
8 years ago
|
var imported = false;
|
||
|
onmessage = function(e) {
|
||
|
if (imported) {
|
||
|
postMessage(md5(e.data));
|
||
|
if (typeof exports !== 'undefined') {
|
||
|
imported = false;
|
||
|
}
|
||
|
} else {
|
||
|
imported = true;
|
||
|
importScripts(e.data);
|
||
|
}
|
||
|
}
|