From af7f35a0feab8879e5d98b7f81497a63c8502ba0 Mon Sep 17 00:00:00 2001 From: Arthri <41360489+Arthri@users.noreply.github.com> Date: Thu, 2 May 2024 07:23:26 +0800 Subject: [PATCH] Remove tgui say error (#25273) * Remove the error * Build and update tgui * Restore precautionary if statement * Build and update tgui * trigger ci --------- Co-authored-by: Arthri <41360489+a@users.noreply.github.com> Co-authored-by: /tg/ui Builder <41898282+github-actions[bot]@users.noreply.github.com> --- code/modules/tgui_input/say_modal/tgui_say_modal.dm | 3 --- tgui/packages/tgui-say/index.tsx | 5 +---- tgui/public/tgui-say.bundle.js | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/code/modules/tgui_input/say_modal/tgui_say_modal.dm b/code/modules/tgui_input/say_modal/tgui_say_modal.dm index 947c9749689..3dc8718e80b 100644 --- a/code/modules/tgui_input/say_modal/tgui_say_modal.dm +++ b/code/modules/tgui_input/say_modal/tgui_say_modal.dm @@ -119,8 +119,5 @@ if("entry") handle_entry(payload) return TRUE - if("ready_state_error") - to_chat(client, "TGUI Say attempted to render before it was ready, please try again!") - return FALSE return FALSE diff --git a/tgui/packages/tgui-say/index.tsx b/tgui/packages/tgui-say/index.tsx index dbbe04ef626..230571c76d9 100644 --- a/tgui/packages/tgui-say/index.tsx +++ b/tgui/packages/tgui-say/index.tsx @@ -4,10 +4,7 @@ import { render } from 'inferno'; import { TguiSay } from './TguiSay'; document.onreadystatechange = function () { - if (document.readyState !== 'complete') { - Byond.sendMessage('ready_state_error'); - return; - } + if (document.readyState !== 'complete') return; const root = document.getElementById('react-root'); render(, root); diff --git a/tgui/public/tgui-say.bundle.js b/tgui/public/tgui-say.bundle.js index 138c5ffd530..f478459923d 100644 --- a/tgui/public/tgui-say.bundle.js +++ b/tgui/public/tgui-say.bundle.js @@ -32,4 +32,4 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var i,t=[],r=[],n=function(){if(0)var l;window.onunload=function(){return i&&i.close()}},e=function(l){return r.push(l)},a=function(l){var h=[],I=function(g){return typeof g=="number"&&!Number.isFinite(g)?{__number__:String(g)}:typeof g=="undefined"?{__undefined__:!0}:g},S=function(g,P){if(typeof P=="object"){if(P===null)return P;if(h.includes(P))return"[circular ref]";h.push(P);var R=P instanceof Error||P.code&&P.message&&P.message.includes("Error");return R?{__error__:!0,string:String(P),stack:P.stack}:Array.isArray(P)?P.map(I):P}return I(P)},T=JSON.stringify(l,S);return h=null,T},o=function(l){if(0)var h,I,S},s=function(l,h){if(0)var I,S,T},c=function(){};u.exports={subscribe:e,sendMessage:o,sendLogEntry:s,setupHotReloading:c}}},Sr={};function D(u){var i=Sr[u];if(i!==void 0)return i.exports;var t=Sr[u]={exports:{}};return Wr[u](t,t.exports,D),t.exports}(function(){D.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(u){if(typeof window=="object")return window}}()})();var Rn={};(function(){"use strict";D(99414),D(27718),D(46951),D(86042),D(93267),D(41664),D(48965),D(44844),D(25030),D(96454),D(77564),D(44875),D(77904),D(35723),D(65755),D(35496),D(76604),D(24974),D(6297),D(5364),D(35173),D(16576),D(88707),D(21508),D(86339),D(81850),D(98661),D(13431),D(65809),D(8611),D(97246),D(48741),D(90446),D(509),D(61902),D(96149),D(66617),D(99883),D(56855),D(67869),D(8291),D(42811),D(97824),D(70238),D(21664),D(57348),D(98878),D(4624),D(96097),D(45022),D(79155),D(53397),D(52037),D(21698),D(20509),D(9530),D(17814),D(37812),D(86551),D(10940),D(73763),D(3372),D(51629),D(69727),D(27482),D(7108),D(4115),D(63953),D(71377),D(63956),D(90037),D(46818),D(26681),D(83646),D(28876),D(36385),D(84295),D(59785),D(8846),D(50237),D(6436),D(68286),D(23940),D(82425),D(82118),D(7419),D(42409),D(29002),D(85795),D(74722),D(5300),D(85684),D(36014),D(98551),D(66288),D(26862),D(78686),D(36789),D(82707),D(69740),D(87847),D(54789),D(49626),D(67660),D(43619),D(42777),D(13045),D(38664),D(29650),D(58176),D(35286),D(13313),D(26528),D(54959),D(78129),D(54412),D(82427),D(8390),D(68260),D(86508),D(65971),D(17134),D(18972),D(78623),D(60149),D(56380),D(72792),D(60631),D(25168),D(85177),D(95880),D(59978),D(96360),D(43108),D(37801),D(3044),D(48432),D(54564),D(58179),D(68164),D(58880),D(54465),D(97327),D(19114),D(23797),D(17337),D(53713),D(84469),D(11121),D(93073),D(50800),D(36),D(30519),D(33547),D(53426),D(32031),D(13153),D(21953),D(83560),D(63465),D(98998),D(96227),D(15483),D(86829),D(68265),D(36030),D(32791),D(25888),D(35718),D(45338),D(40737),D(99683),D(80941),D(84805),D(79305),D(71573),D(47910),D(48447),D(99662),D(57371),D(68220),D(15745),D(43398),D(97722),D(79088),D(6075),D(46896),D(47145),D(72606),D(349),D(28292),D(54890),D(66368),D(74188),D(81976),D(78651),D(81664),D(35579),D(84033),D(71863),D(55457),D(57399),D(65836),D(55776),D(16666)})(),function(){"use strict";var u=D(96524);D(33643);var i=D(33917);document.onreadystatechange=function(){if(document.readyState!=="complete"){Byond.sendMessage("ready_state_error");return}var t=document.getElementById("react-root");(0,u.render)((0,u.createComponentVNode)(2,i.TguiSay),t)}}()})();})(); + */var i,t=[],r=[],n=function(){if(0)var l;window.onunload=function(){return i&&i.close()}},e=function(l){return r.push(l)},a=function(l){var h=[],I=function(g){return typeof g=="number"&&!Number.isFinite(g)?{__number__:String(g)}:typeof g=="undefined"?{__undefined__:!0}:g},S=function(g,P){if(typeof P=="object"){if(P===null)return P;if(h.includes(P))return"[circular ref]";h.push(P);var R=P instanceof Error||P.code&&P.message&&P.message.includes("Error");return R?{__error__:!0,string:String(P),stack:P.stack}:Array.isArray(P)?P.map(I):P}return I(P)},T=JSON.stringify(l,S);return h=null,T},o=function(l){if(0)var h,I,S},s=function(l,h){if(0)var I,S,T},c=function(){};u.exports={subscribe:e,sendMessage:o,sendLogEntry:s,setupHotReloading:c}}},Sr={};function D(u){var i=Sr[u];if(i!==void 0)return i.exports;var t=Sr[u]={exports:{}};return Wr[u](t,t.exports,D),t.exports}(function(){D.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(u){if(typeof window=="object")return window}}()})();var Rn={};(function(){"use strict";D(99414),D(27718),D(46951),D(86042),D(93267),D(41664),D(48965),D(44844),D(25030),D(96454),D(77564),D(44875),D(77904),D(35723),D(65755),D(35496),D(76604),D(24974),D(6297),D(5364),D(35173),D(16576),D(88707),D(21508),D(86339),D(81850),D(98661),D(13431),D(65809),D(8611),D(97246),D(48741),D(90446),D(509),D(61902),D(96149),D(66617),D(99883),D(56855),D(67869),D(8291),D(42811),D(97824),D(70238),D(21664),D(57348),D(98878),D(4624),D(96097),D(45022),D(79155),D(53397),D(52037),D(21698),D(20509),D(9530),D(17814),D(37812),D(86551),D(10940),D(73763),D(3372),D(51629),D(69727),D(27482),D(7108),D(4115),D(63953),D(71377),D(63956),D(90037),D(46818),D(26681),D(83646),D(28876),D(36385),D(84295),D(59785),D(8846),D(50237),D(6436),D(68286),D(23940),D(82425),D(82118),D(7419),D(42409),D(29002),D(85795),D(74722),D(5300),D(85684),D(36014),D(98551),D(66288),D(26862),D(78686),D(36789),D(82707),D(69740),D(87847),D(54789),D(49626),D(67660),D(43619),D(42777),D(13045),D(38664),D(29650),D(58176),D(35286),D(13313),D(26528),D(54959),D(78129),D(54412),D(82427),D(8390),D(68260),D(86508),D(65971),D(17134),D(18972),D(78623),D(60149),D(56380),D(72792),D(60631),D(25168),D(85177),D(95880),D(59978),D(96360),D(43108),D(37801),D(3044),D(48432),D(54564),D(58179),D(68164),D(58880),D(54465),D(97327),D(19114),D(23797),D(17337),D(53713),D(84469),D(11121),D(93073),D(50800),D(36),D(30519),D(33547),D(53426),D(32031),D(13153),D(21953),D(83560),D(63465),D(98998),D(96227),D(15483),D(86829),D(68265),D(36030),D(32791),D(25888),D(35718),D(45338),D(40737),D(99683),D(80941),D(84805),D(79305),D(71573),D(47910),D(48447),D(99662),D(57371),D(68220),D(15745),D(43398),D(97722),D(79088),D(6075),D(46896),D(47145),D(72606),D(349),D(28292),D(54890),D(66368),D(74188),D(81976),D(78651),D(81664),D(35579),D(84033),D(71863),D(55457),D(57399),D(65836),D(55776),D(16666)})(),function(){"use strict";var u=D(96524);D(33643);var i=D(33917);document.onreadystatechange=function(){if(document.readyState==="complete"){var t=document.getElementById("react-root");(0,u.render)((0,u.createComponentVNode)(2,i.TguiSay),t)}}}()})();})();