Skip to content

Commit 3b936b0

Browse files
committed
Added a default icon
1 parent 74d8b63 commit 3b936b0

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

icon.png

1.01 KB
Loading

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const register = (core, args, options, metadata) => {
4545
proc.createWindow({
4646
id: 'MyIframeApplicationWindow',
4747
title: metadata.title.en_EN,
48+
icon: proc.resource(proc.metadata.icon),
4849
dimension: {width: 400, height: 400},
4950
position: {left: 700, top: 200}
5051
})

metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "MyIframeApplication",
33
"category": null,
4+
"icon": "icon.png",
45
"title": {
56
"en_EN": "My Iframe Application",
67
"fr_FR": "Mon application Iframe"

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ module.exports = {
1818
plugins: [
1919
new CopyWebpackPlugin({
2020
patterns: [
21-
{from: 'data', to: 'data'}
21+
{from: 'data', to: 'data'},
22+
'icon.png'
2223
]
2324
})
2425
],

0 commit comments

Comments
 (0)