Fix issue #17: Foundry Module: Show pairing status
This commit is contained in:
@@ -144,7 +144,10 @@ function makeStubWorld({ autoSync = true } = {}) {
|
||||
|
||||
state.game = sandbox.game;
|
||||
state.actor = (id) => actors.find((document) => document.id === id);
|
||||
state.syncRequests = () => state.requests.filter((request) => request.href.includes("foundry/sync"));
|
||||
// Sync pushes only: the pairing status read lives under the same prefix, and it
|
||||
// tells nothing about what the world sent.
|
||||
state.syncRequests = () => state.requests.filter((request) => request.href.includes("foundry/sync")
|
||||
&& !request.href.includes("foundry/sync/status"));
|
||||
|
||||
state.fire = async (name, ...args) => {
|
||||
for (const handler of state.hooks.get(name) || []) await handler(...args);
|
||||
|
||||
Reference in New Issue
Block a user