mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
Fix syntax for older gnome-shell versions
This commit is contained in:
2
panel.js
2
panel.js
@@ -780,7 +780,7 @@ var dtpSecondaryPanel = Utils.defineClass({
|
||||
}
|
||||
},
|
||||
|
||||
vfunc_get_preferred_width(forHeight) {
|
||||
vfunc_get_preferred_width: function(forHeight) {
|
||||
if (this.delegate) {
|
||||
return [0, this.delegate.monitor.width];
|
||||
}
|
||||
|
||||
4
utils.js
4
utils.js
@@ -398,7 +398,7 @@ var ColorUtils = {
|
||||
else
|
||||
s = 0;
|
||||
|
||||
return {h, s, v};
|
||||
return {h: h, s: s, v: v};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -568,7 +568,7 @@ var DominantColorExtractor = defineClass({
|
||||
*
|
||||
* @return [];
|
||||
*/
|
||||
_resamplePixels (pixels, resampleX, resampleY) {
|
||||
_resamplePixels: function (pixels, resampleX, resampleY) {
|
||||
let resampledPixels = [];
|
||||
// computing the limit outside the for (where it would be repeated at each iteration)
|
||||
// for performance reasons
|
||||
|
||||
Reference in New Issue
Block a user