Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nkolba committed Apr 15, 2022
1 parent 8c4d123 commit c5e58d0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
22 changes: 10 additions & 12 deletions directory/src/routes/root.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { FastifyInstance } from 'fastify';

export const root = (fastify : FastifyInstance, options, done) => {
fastify.get('/', async (request, reply) => {
console.log("root request", request);
reply
.code(200)
.header('Content-Type', 'application/json; charset=utf-8')
.send({"description":"FDC3 App Directory API","version":"1.2"});

});
export const root = (fastify: FastifyInstance, options, done) => {
fastify.get('/', async (request, reply) => {
console.log('root request', request);
reply
.code(200)
.header('Content-Type', 'application/json; charset=utf-8')
.send({ description: 'FDC3 App Directory API', version: '1.2' });
});

done();

};
done();
};
8 changes: 3 additions & 5 deletions packages/preload/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,14 @@ ipcRenderer.on(TOPICS.ADD_TAB, (event, args) => {
title: args.title,
},
});
if (frameReady){

if (frameReady) {
document.dispatchEvent(tabEvent);
}
else {
} else {
document.addEventListener(TOPICS.FRAME_READY, () => {
document.dispatchEvent(tabEvent);
});
}

});

ipcRenderer.on(TOPICS.SELECT_TAB, (event, args) => {
Expand Down

0 comments on commit c5e58d0

Please sign in to comment.