mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
Refactoring in preparation for WebSockets (#254)
* Fix injector race conditions * add some more tasks * hide useless rollup warnings * goodbye to clientsession errors * completely fix desktop mode switch race condition * fix typos and TS warning in plugin error handler * fix chown error * start debugger if needed and not already started * fix get_steam_resource for the like 2 legacy plugins still using it lol * add ClientOSError to get_tabs error handling
This commit is contained in:
@@ -5,7 +5,12 @@ import externalGlobals from "rollup-plugin-external-globals";
|
||||
import del from 'rollup-plugin-delete'
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import { defineConfig } from 'rollup';
|
||||
import { defineConfig, handleWarning } from 'rollup';
|
||||
|
||||
const hiddenWarnings = [
|
||||
"THIS_IS_UNDEFINED",
|
||||
"EVAL"
|
||||
];
|
||||
|
||||
export default defineConfig({
|
||||
input: 'src/index.tsx',
|
||||
@@ -35,5 +40,9 @@ export default defineConfig({
|
||||
chunkFileNames: (chunkInfo) => {
|
||||
return 'chunk-[hash].js'
|
||||
}
|
||||
},
|
||||
onwarn: function ( message ) {
|
||||
if (hiddenWarnings.some(warning => message.code === warning)) return;
|
||||
handleWarning(message);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -249,11 +249,11 @@ class PluginLoader extends Logger {
|
||||
<>
|
||||
Error:{' '}
|
||||
<pre>
|
||||
<code>{e instanceof Error ? e.stack : e?.toString()}</code>
|
||||
<code>{e instanceof Error ? e.stack : JSON.stringify(e)}</code>
|
||||
</pre>
|
||||
<>
|
||||
Please go to <FaCog style={{ display: 'inline' }} /> in Decky Loader.e settings menu if you need to
|
||||
uninstall this plugin.
|
||||
Please go to <FaCog style={{ display: 'inline' }} /> in the Decky menu if you need to uninstall this
|
||||
plugin.
|
||||
</>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user