-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get render view in GetWindowObject #2
Comments
okay, so decided to start again by cloning the repo, running this caused the notifications to work properly, /however/, a blank and unclosable notification stays in the bottom right of the screen. also, if you create a lot of notifications, say, more than ten, the app throws the |
I am still working on the notifications.
As an outcome - It works perfectly on windows. Native html5 is awful there thus this module is better to use. Mac and linux - native html5 is ok. Until node-webkit will allow to show windows without focusing original app. |
Got the same error on Windows; #6 |
this there any solution available for this. Thanks un advance. I am struggling for this. |
It can be fixed to use this code. freeWin.on('loaded', function () {
Emitter(this.window);
freeWin.window.document.body.onclick = function () {
freeWin.window.emit("body.click");
};
freeWin.window.document.body.oncontextmenu = function () {
freeWin.window.emit("contextmenu");
};
// on<stuff> events implementation
noti.on('body.click', function () {
if (noti.onclick) noti.onclick.call(noti);
}.bind(noti));
noti.on('show', function () {
if (noti.onshow) noti.onshow.call(noti);
}.bind(noti));
noti.on('error', function () {
if (noti.onerror) noti.onerror.call(noti);
}.bind(noti));
noti.on('close', function () {
if (noti.onclose) noti.onclose.call(noti);
}.bind(noti));
noti.on('contextmenu', function () {
if (noti.oncontextmenu) noti.oncontextmenu.call(noti);
}.bind(noti));
winPool.push(freeWin);
freeWin.isBusy = true;
freeWin.originalHtml = freeWin.window.document.body.innerHTML;
this.resizeTo(noti.options.width, noti.options.height);
this.moveTo(rightBorder() + 10, getNextAvailTop());
noti.show();
}); Add window.emit("event") code on Window loaded. <body onclick="window.emit('body.click')" oncontextmenu="window.emit('contextmenu');"> To-be: <body> May be my code is little difference with yours I hope it's helpful |
i'm not sure if this bug is only to do with linux.
i'm running on ubuntu 12.04
i'll poke around in the source and see if i can figure it out :)
The text was updated successfully, but these errors were encountered: