Skip to content

Commit

Permalink
fix notifications showing as numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 18, 2021
1 parent ecdd6ba commit a23c611
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2640,8 +2640,8 @@ XpraClient.prototype._process_notify_show = function(packet, ctx) {
//const app_icon = packet[5];
const nid = packet[2];
const replaces_nid = packet[4];
const summary = packet[6];
const body = packet[7];
const summary = Utilities.s(packet[6]);
const body = Utilities.s(packet[7]);
const expire_timeout = packet[8];
const icon = packet[9];
const actions = packet[10];
Expand All @@ -2655,8 +2655,9 @@ XpraClient.prototype._process_notify_show = function(packet, ctx) {

function notify() {
let icon_url = "";
if (icon) {
icon_url = "data:image/png;base64," + Utilities.ArrayBufferToBase64(icon);
if (icon && icon[0]=="png") {
icon_url = "data:image/png;base64," + Utilities.ArrayBufferToBase64(icon[3]);
console.log("notification icon_url=", icon_url);
}
/*
const nactions = [];
Expand Down

0 comments on commit a23c611

Please sign in to comment.