From a3e88e7815cc38d531ad1a9e8d8842c64f344d4c Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Fri, 6 Jul 2012 12:21:07 +0100
Subject: [PATCH] Update the URL to WinChan.  Use cachify for the resources.

issue #1871
issue #1937
---
 lib/static_resources.js                       | 4 ++++
 resources/views/authenticate_with_primary.ejs | 3 +--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/static_resources.js b/lib/static_resources.js
index 7b14d260d..d5065e982 100644
--- a/lib/static_resources.js
+++ b/lib/static_resources.js
@@ -157,6 +157,10 @@ exports.resources = {
   ],
   '/production/relay.js': [
     '/relay/relay.js'
+  ],
+  '/production/authenticate_with_primary.js': [
+    '/common/js/lib/winchan.js',
+    '/auth_with_idp/main.js'
   ]
 };
 exports.resources[dialog_min_js] = dialog_js;
diff --git a/resources/views/authenticate_with_primary.ejs b/resources/views/authenticate_with_primary.ejs
index 8039a3376..45f8dab1d 100644
--- a/resources/views/authenticate_with_primary.ejs
+++ b/resources/views/authenticate_with_primary.ejs
@@ -6,7 +6,6 @@
 <head>
   <meta charset="utf-8">
   <title>Browser ID</title>
-  <script type='text/javascript' src='https://static.login.persona.org/lib/winchan.js'></script>
-  <script type='text/javascript' src='https://static.login.persona.org/auth_with_idp/main.js'></script>
+  <%- cachify_js('/production/authenticate_with_primary.js') %>
 </head>
 </html>
-- 
GitLab