New canvas GetContext function.

This commit is contained in:
Richard Davey 2017-02-07 18:41:23 +00:00
parent 002facb59a
commit 47a6434abb

View file

@ -0,0 +1,9 @@
var GetContext = function (canvas, options)
{
return (
canvas.getContext('2d', options) ||
null
);
};
module.exports = GetContext;