summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 3e0b09146..6fbabb69d 100644
--- a/functions.js
+++ b/functions.js
@@ -1302,6 +1302,14 @@ function getFeedsContext() {
}
}
+function getContentContext() {
+ try {
+ return getMainContext().frames["content-frame"];
+ } catch (e) {
+ exception_error("getContentContext", e);
+ }
+}
+
function getHeadlinesContext() {
try {
@@ -1410,3 +1418,7 @@ function getFeedName(id, is_cat) {
return null;
}
}
+
+function viewContentUrl(url) {
+ getContentContext().location = url;
+}