Skip to content

Commit fb7ca21

Browse files
committed
Replaced some requires with imports
1 parent 0afa3f1 commit fb7ca21

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
*/
3030

3131
import {clientLocale} from './utils/locale.js';
32+
import defaultWallpaper from './styles/wallpaper.png';
33+
import defaultIcon from './styles/logo-blue-32x32.png';
3234

3335
const createUri = str => str
3436
.replace(/(index\.(html?|php))$/, '')
@@ -172,7 +174,7 @@ export const defaultConfiguration = {
172174
position: 'top-right'
173175
},
174176
background: {
175-
src: require('./styles/wallpaper.png'),
177+
src: defaultWallpaper,
176178
color: '#572a79',
177179
style: 'cover'
178180
},
@@ -210,7 +212,7 @@ export const defaultConfiguration = {
210212
name: 'apps',
211213
label: 'Applications',
212214
adapter: 'apps',
213-
icon: require('./styles/logo-blue-32x32.png'),
215+
icon: defaultIcon,
214216
attributes: {
215217
visibility: 'restricted',
216218
readOnly: true

src/tray.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030

3131
import logger from './logger';
32+
import defaultIcon from './styles/logo-blue-32x32.png';
3233

3334
/**
3435
* A Tray Icon ("Entry")
@@ -85,7 +86,7 @@ export default class Tray {
8586
handler = handler || (() => {});
8687

8788
const entry = Object.assign({}, {
88-
icon: require('./styles/logo-blue-32x32.png'),
89+
icon: defaultIcon,
8990
title: defaultTitle,
9091
onclick: handler,
9192
oncontextmenu: handler,

0 commit comments

Comments
 (0)