【发布时间】:2013-09-10 16:10:18
【问题描述】:
我需要覆盖 Meteor 的 oauth 包中 oauth_server.js 中的一个函数。
我要换——
var closePopup = function(res) {
res.writeHead(200, {'Content-Type': 'text/html'});
var content =
'<html><head><script>window.close()</script></head></html>';
res.end(content, 'utf-8');
};
类似的东西 -
var closePopup = function(res) {
res.writeHead(200, {'Content-Type': 'text/html'});
var content =
'<html><head><script>window.location.href = "http://www.google.com/";</script></head></html>';
res.end(content, 'utf-8');
};
这个包是一个核心流星包,所以我不认为我可以删除它并添加一个修改版本。
我尝试将编辑后的变量(函数)添加到我的主服务器代码中,但没有看到流星的行为发生任何变化。
非常感谢,丹尼尔。
【问题讨论】:
标签: javascript oauth meteor