Skip to content

Instantly share code, notes, and snippets.

@bartek
Created May 4, 2013 16:07
Show Gist options
  • Select an option

  • Save bartek/5517943 to your computer and use it in GitHub Desktop.

Select an option

Save bartek/5517943 to your computer and use it in GitHub Desktop.
var __scripts = ["http://127.0.0.1:4000/javascript/public/lodash.js","http://127.0.0.1:4000/javascript/public/yabble.js","http://127.0.0.1:4000/javascript/public/gamejs.min.js"];
__scripts.forEach(function(script) {
try {
importScripts(script);
} catch (e) {
// can't help the worker
}
});
self.require.setModuleRoot("http://127.0.0.1:4000/javascript/");self.require.run("./gramework/gamepad");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment