Skip to content

Commit

Permalink
implemented reviewer requests
Browse files Browse the repository at this point in the history
 - Removed obselete library byteArray
 - Renamed schema
 - Removed schema id from prefs
  • Loading branch information
MattByName committed Dec 8, 2023
1 parent 7810b7c commit f72bd31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,9 @@ export default class ColorTinter extends Extension {
[flag, data] = this._file.load_contents(null);

if (flag) {
const ByteArray = imports.byteArray;
const TexDec = new TextDecoder();
let prepData =
data instanceof Uint8Array
? ByteArray.toString(data)
: data.toString();
data instanceof Uint8Array ? TexDec.decode(data) : data.toString();
overlay_color = JSON.parse(prepData);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {

export default class ColorTintPreferences extends ExtensionPreferences {
fillPreferencesWindow(window) {
window._settings = this.getSettings("org.gnome.shell.extensions.colortint");
window._settings = this.getSettings();
// Create a preferences page and group
const page = new Adw.PreferencesPage();
const group = new Adw.PreferencesGroup();
Expand Down
File renamed without changes.

0 comments on commit f72bd31

Please sign in to comment.