Skip to content
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

Web Notification implement #7 #75

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Page-David
Copy link

一点微小的代码,谢谢大家

@@ -125,6 +125,19 @@
msg.id = fishLogData.current_id;
fishLogData.current_id++;
fishLogData.msgs.push(msg);
// Notification sending...
var noti_title = msg.sender + "sent a new message";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A space between sender and "sent a new message"?

@@ -125,6 +125,19 @@
msg.id = fishLogData.current_id;
fishLogData.current_id++;
fishLogData.msgs.push(msg);
// Notification sending...
var noti_title = msg.sender + "sent a new message";
if (Notification.permission === "granted") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check browser compatibility pls.

@huiyiqun
Copy link
Member

huiyiqun commented Jul 7, 2017

@Page-David good job.

@Page-David
Copy link
Author

You are welcome, by the way, is this good to merge or improvement is in need?

@huiyiqun
Copy link
Member

huiyiqun commented Jul 7, 2017

Fair enough. I'm waiting for @bigeagle to merge. I have no access to the production environment.

@Page-David
Copy link
Author

Oh, thanks.

@@ -125,6 +125,21 @@
msg.id = fishLogData.current_id;
fishLogData.current_id++;
fishLogData.msgs.push(msg);
// Notification sending...
var notification = 'New message from ' + msg.sender;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

抱歉,突然发现标题名和Notification实例名冲突了。

@Page-David
Copy link
Author

Variable conflict solved.

@dotkrnl
Copy link
Member

dotkrnl commented Dec 2, 2018

tuna/fishroom 项目由于授权条款原因,部分贡献者维护能力受限,已通过 #91 以及 4167265 将所用授权条款修改为 GPLv3。

由于此 pull request 中代码的授权方式仍为 AGPL,未来的维护者暂无法对其进行 merge 操作。如您仍希望代码接受合并,请回复同意已将您这一贡献的授权方式修改为 GPLv3。

谢谢!

@Page-David
Copy link
Author

已知悉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants