@itwin/core-frontend 5.15.0-dev.1 → 5.15.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ // refuse to continue if using Internet Explorer or old Microsoft Edge.
7
+ if (!!document.documentMode || !!window.StyleMedia) {
8
+ const body = document.createElement("body");
9
+ const newDiv = document.createElement("div");
10
+ newDiv.style.font = "normal bold 16px sans-serif";
11
+ newDiv.style.display = "flex";
12
+ newDiv.style.justifyContent = "center";
13
+ newDiv.style.position = "relative";
14
+ newDiv.style.top = "25%";
15
+ newDiv.innerHTML = "Sorry, the browser you are using is not supported. Please use Firefox, Chrome, or Safari.";
16
+ body.appendChild(newDiv);
17
+ document.body = body;
18
+
19
+ // remove all the other script tags from the head.
20
+ var scripts = document.head.getElementsByTagName("script");
21
+ for (var i = 0; i < scripts.length; i++) {
22
+ document.head.removeChild(scripts[i]);
23
+ }
24
+ }