summaryrefslogblamecommitdiffstats
path: root/web/js/labitrack.d/90-start.js
blob: b31a0cf7d628758b83da90f35bf81e7c971e9fc6 (plain) (tree)


















                                                             
$(function(){
	function supportsToDataURL()
	{
		var c = document.createElement("canvas");
		var data = c.toDataURL("image/png");
		return (data.indexOf("data:image/png") == 0);
	}

	if (Modernizr.canvas
	    && Modernizr.canvastext
	    && Modernizr.fontface
	    && supportsToDataURL) {
		Backbone.history.start({
			pushState: true
		});
	} else {
		λ.setcontent('ancientbrowser');
	}
});