mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 23:08:22 -05:00
Add reddit toolbar to the privileged request check.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
$(function() {
|
||||
reddit.external_frame = true;
|
||||
|
||||
/* set default arrow behavior */
|
||||
var state = null;
|
||||
function color(x) {
|
||||
|
||||
@@ -167,7 +167,7 @@ $.request = function(op, parameters, worker_in, block, type,
|
||||
var action = op;
|
||||
var worker = worker_in;
|
||||
|
||||
if (rate_limit(op))
|
||||
if (rate_limit(op) || (window != window.top && !reddit.cnameframe && !reddit.external_frame))
|
||||
return;
|
||||
|
||||
/* we have a lock if we are not blocking or if we have gotten a lock */
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
|
||||
<%def name="javascript_run()">
|
||||
${parent.javascript_run()}
|
||||
reddit.external_frame = true;
|
||||
toolbar = new toolbar_p("${panel_size('expanded')}", "${panel_size('collapsed')}");
|
||||
</%def>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user