mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
tgui
tgui update
This commit is contained in:
@@ -48,8 +48,9 @@ if (window.__windowId__ === '[' + 'tgui:windowId' + ']') {
|
||||
// Basic checks to detect whether this page runs in BYOND
|
||||
var isByond = (tridentVersion !== null || window.cef_to_byond)
|
||||
&& location.hostname === '127.0.0.1'
|
||||
&& location.pathname.indexOf('/tmp') === 0
|
||||
&& location.search !== '?external';
|
||||
//As of BYOND 515 the path doesn't seem to include tmp dir anymore if you're trying to open tgui in external browser and looking why it doesn't work
|
||||
//&& location.pathname.indexOf('/tmp') === 0
|
||||
|
||||
// Version constants
|
||||
Byond.IS_BYOND = isByond;
|
||||
@@ -202,6 +203,8 @@ if (window.__windowId__ === '[' + 'tgui:windowId' + ']') {
|
||||
var len = styleSheets.length;
|
||||
for (var i = 0; i < len; i++) {
|
||||
var styleSheet = styleSheets[i];
|
||||
if(styleSheet.href === undefined)
|
||||
continue;
|
||||
if (styleSheet.href.indexOf(url) !== -1) {
|
||||
return styleSheet.rules.length > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user