Skip to content

Commit

Permalink
may fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
SchroterQuentin committed Nov 21, 2023
1 parent 1754d29 commit cd678c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/Bones.UI/core/eventQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ export class EventQueue {
});

if (window.top) {
this.messageCounter++;
const id = "remote_" + this.messageCounter;

const message: WindowsMessage = {
id: _.uniqueId("remote_"),
id,
topic,
payload
};

this.buffer[this.messageCounter % bufferSize] = message.id;

window.top.postMessage(JSON.stringify(message), "*");
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/Bones.UI/core/serviceFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export class ServiceFactory<TDetailsDTO, TDetails> {

const getMany = async (filter?: TFilter) => {
const realUrl = typeof url === "string" ? url : url();
console.log("TESST");
console.log(buildURL(realUrl, filter));

const response = await ServiceFactory.http.get(buildURL(realUrl, filter));
const dtos: TInfosDTO[] = response.data;

Expand Down

0 comments on commit cd678c6

Please sign in to comment.