dsh-plugin-marginalia 0.2.0 → 0.2.1
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.
- package/client.js +4 -3
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -966,9 +966,10 @@ window.__ModuleLoader__.load({
|
|
|
966
966
|
|
|
967
967
|
function MarginaliaBody(props) {
|
|
968
968
|
const sessionId = props?.sessionId;
|
|
969
|
-
const
|
|
970
|
-
typeof props?.useSessionStatus === 'function'
|
|
971
|
-
|
|
969
|
+
const isMainRunning =
|
|
970
|
+
typeof props?.useSessionStatus === 'function'
|
|
971
|
+
? Boolean(props.useSessionStatus((s) => Boolean(s?.running)))
|
|
972
|
+
: false;
|
|
972
973
|
|
|
973
974
|
const [, setLocaleTick] = React.useState(0);
|
|
974
975
|
React.useEffect(() => ctx.locale.subscribe(() => setLocaleTick((v) => v + 1)), []);
|
package/package.json
CHANGED