515 Compatibility (#19636)

* 515 compat

* double spaces

* Callback documentation, aa review

* spacing

* NAMEOF_STATIC

* big beta
This commit is contained in:
S34N
2022-11-08 23:08:40 +00:00
committed by GitHub
parent 2e7e556383
commit 667dd5d4ac
378 changed files with 928 additions and 919 deletions
+3 -2
View File
@@ -27,8 +27,9 @@
// Basic checks to detect whether this page runs in BYOND
var isByond =
!!navigator.userAgent.match(/Trident\/(\d+).+?;/i) &&
location.hostname === '127.0.0.1' &&
location.pathname.indexOf('/tmp') === 0;
location.hostname === '127.0.0.1';
//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
// Makes a BYOND call.
// See: https://secure.byond.com/docs/ref/skinparams.html
Byond.call = function (path, params) {