aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--npr-text-mode-redirect.user.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/npr-text-mode-redirect.user.js b/npr-text-mode-redirect.user.js
index 00cb646..3fc4706 100644
--- a/npr-text-mode-redirect.user.js
+++ b/npr-text-mode-redirect.user.js
@@ -34,4 +34,4 @@ var url_parts = redirect_url.split('/');
// Second-to-last URL part is the article ID
var article_id = url_parts[url_parts.length - 2];
-location.assign('https://text.npr.org/s.php?sId=' + article_id);
+window.location.assign('https://text.npr.org/s.php?sId=' + article_id);