odin
Version:
Node.js Canvas/WebGL Javascript Game Framework
21 lines (17 loc) • 462 B
JavaScript
if (typeof(define) !== "function") {
var define = require("amdefine")(module);
}
define(
function() {
"use strict";
var w = typeof(window) !== "undefined" ? window : global,
ctx = (
w.AudioContext ||
w.webkitAudioContext ||
w.mozAudioContext ||
w.oAudioContext ||
w.msAudioContext
);
return ctx ? new ctx : false;
}
);