Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnepsnai committed Dec 7, 2024
1 parent 4ca6a4f commit 1836819
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/desktop/src/Interop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const Interop: IInterop = {
},
exportCertificates: function (certificates: Certificate[], format: ExportFormatType, password: string): Promise<ExportedFile[]> {
return IPC.exportCertificates(certificates, format, password).then(() => {
return [];
return <ExportedFile[]>[];
});
},
cloneCertificate: function (): Promise<CertificateRequest> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
</head>
<body>
<div id="app"></div>
<script src="assets/js/react.development.js"></script>
<script src="assets/js/react-dom.development.js"></script>
</body>
</html>
12 changes: 0 additions & 12 deletions src/desktop/src/html/index.production.min.html

This file was deleted.

4 changes: 1 addition & 3 deletions src/desktop/webpack.renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ module.exports = {
},
plugins: [
new HtmlWebpackPlugin({
template: 'src/html/index.' + sourceType + '.html'
template: 'src/html/index.html'
}),
new CspHtmlWebpackPlugin({
'script-src': []
}),
new CopyPlugin({
patterns: [
{ from: 'src/icons/certbox.png', to: 'assets/img/' },
{ from: 'node_modules/react/umd/react.' + sourceType + '.js', to: 'assets/js/' },
{ from: 'node_modules/react-dom/umd/react-dom.' + sourceType + '.js', to: 'assets/js/' },
]
}),
new ESLintPlugin({
Expand Down

0 comments on commit 1836819

Please sign in to comment.