From 61e463b66f3e7bd5b3abafbe974ef15ff46aa3cf Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 6 Dec 2023 03:05:05 +0100 Subject: [PATCH] fix(core): update --- assets/preload.js | 4 ++-- ts/00_commitinfo_data.ts | 2 +- ts/paths.ts | 3 ++- ts_web/00_commitinfo_data.ts | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/assets/preload.js b/assets/preload.js index e895264..8c36a6d 100644 --- a/assets/preload.js +++ b/assets/preload.js @@ -1,9 +1,9 @@ -const { contextBridge, ipcRenderer } = require('electron') +const { contextBridge, ipcRenderer } = require('electron'); contextBridge.exposeInMainWorld('electronApi', { sendMessage: async (channelNameArg, payloadArg) => { ipcRenderer.send(channelNameArg, payloadArg); }, receiveMessage: (channelNameArg, func) => { ipcRenderer.on(channelNameArg, (event, ...args) => func(...args)); -} + }, }); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index d457150..f5a082a 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@api.global/typedelectron', - version: '1.0.6', + version: '1.0.7', description: 'a package made for ipc communication in electron' } diff --git a/ts/paths.ts b/ts/paths.ts index c7c7eac..59b0845 100644 --- a/ts/paths.ts +++ b/ts/paths.ts @@ -1,7 +1,8 @@ import * as plugins from './plugins.js'; export const packageDir = plugins.path.join( - plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url) + plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), + '../', ); export const assetsDir = plugins.path.join(packageDir, 'assets'); diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index d457150..f5a082a 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@api.global/typedelectron', - version: '1.0.6', + version: '1.0.7', description: 'a package made for ipc communication in electron' }