Skip to content
Snippets Groups Projects
Commit 989fe3d0 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '183-doesn-t-work-in-ie' into 'master'

missing endsWith function for Internet Explorer added,

Closes #183

See merge request !90
parents c6a1d8d2 caeae22d
No related branches found
No related tags found
1 merge request!90missing endsWith function for Internet Explorer added,
......@@ -28,6 +28,17 @@ GuiConnector.yPos = 0;
GuiConnector.init = function() {
var self = this;
if (!String.prototype.endsWith) {
String.prototype.endsWith = function(pattern) {
var d = this.length - pattern.length;
return d >= 0 && this.lastIndexOf(pattern) === d;
};
}
var isIE = /* @cc_on!@ */false || !!document.documentMode;
if (isIE) {
alert("This webpage works well with Chrome, Firefox and Safari.");
}
// bootstrap tab initialization
$("ul.nav-tabs a").click(function(e) {
e.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment