Skip to content

Commit cd281bb

Browse files
committed
IE users should be able to force visit Cloud9 as well
1 parent 4bde320 commit cd281bb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

plugins-server/cloud9.core/view/ide.tmpl.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,26 @@
127127
}
128128
//]]>
129129
</script>
130+
131+
<script>
132+
// browser requirement check
133+
require([apfLoc], function () {
134+
// we don't do this on a non-hosted version...
135+
// the file won't be there, so no need to
136+
if (!window.cloud9config.hosted) return;
137+
138+
// if you pass `force=true` into the querystring, then
139+
// we bypass the browser check
140+
if (!window.location.search.match(/\bforce\=true\b/)) {
141+
// otherwise, ask apf
142+
if (apf.isIE) {
143+
// redirect to the notsupported page
144+
var ref = encodeURIComponent(window.location.pathname + window.location.search);
145+
window.location.href = "/site/notsupported.html?ref=" + ref;
146+
}
147+
}
148+
});
149+
</script>
130150
</head>
131151
<body style="display:none">
132152
<div id="noscript">

0 commit comments

Comments
 (0)