Index: chrome/browser/resources/access_chromevox/chromevox/background/bookmark_manager_loader.js |
=================================================================== |
--- chrome/browser/resources/access_chromevox/chromevox/background/bookmark_manager_loader.js (revision 0) |
+++ chrome/browser/resources/access_chromevox/chromevox/background/bookmark_manager_loader.js (revision 0) |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+var COMPILED_FLAG = false; |
+var TEST_FLAG = false; |
+var BASE_URL = ''; |
+ |
+// Append this to the end of a remote URL to force it to bypass the cache |
+// and be redownloaded. |
+var forceRedownload = '?' + new Date().getTime(); |
+ |
+function loadScript(src) { |
+ var theScript = document.createElement('script'); |
+ theScript.type = 'text/javascript'; |
+ if (src.substr(0, 4) == 'http') |
+ theScript.src = src + forceRedownload; |
+ else if (BASE_URL) |
+ theScript.src = BASE_URL + src + forceRedownload; |
+ else |
+ theScript.src = chrome.extension.getURL(src) + forceRedownload; |
+ document.getElementsByTagName('head')[0].appendChild(theScript); |
+} |
+ |
+loadScript('chromevox/background/bookmark_manager.js'); |
Property changes on: chrome/browser/resources/access_chromevox/chromevox/background/bookmark_manager_loader.js |
___________________________________________________________________ |
Added: svn:executable |
+ * |
Added: svn:eol-style |
+ LF |