<body> | |
<script> | |
var workerNames = window.location.search.toString().substring(1); | |
var nameArray = workerNames.split(","); | |
for (var i = 0; i < nameArray.length; i++) { | |
var worker = new SharedWorker("shared-worker-common.js", nameArray[i]); | |
} | |
</script> | |
</body> |