Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
extension.js: fix "assignment to undeclared variable" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sustmi committed Oct 23, 2017
1 parent caa9a1a commit b240d9d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,15 @@ function enable() {

wsWinOverInjections['_init'] = injectToFunction(Workspace.WindowOverlay.prototype, '_init', function(windowClone, parentActor) {
this._windowOverlayIconsExtension = {};

this._windowOverlayIconsExtension.box = new St.Bin({ style_class: 'windowoverlay-application-icon-box' });
this._windowOverlayIconsExtension.box.set_opacity(settings.get_int('icon-opacity-blur'));


this._windowOverlayIconsExtension.mipmap_size = null;

let result;
let background_color;

[result, background_color] = Gdk.color_parse(settings.get_string('background-color'));
if (result) {
this._windowOverlayIconsExtension.box.style = 'background-color: rgba(' +
Expand Down

0 comments on commit b240d9d

Please sign in to comment.