summaryrefslogtreecommitdiffstats
path: root/web/js/labitrack.d/90-start.js
blob: b31a0cf7d628758b83da90f35bf81e7c971e9fc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$(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');
	}
});