OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 var COMPILED_FLAG = false; |
| 6 var TEST_FLAG = false; |
| 7 var BASE_URL = ''; |
| 8 |
| 9 // Append this to the end of a remote URL to force it to bypass the cache |
| 10 // and be redownloaded. |
| 11 var forceRedownload = '?' + new Date().getTime(); |
| 12 |
| 13 function loadScript(src) { |
| 14 var theScript = document.createElement('script'); |
| 15 theScript.type = 'text/javascript'; |
| 16 if (src.substr(0, 4) == 'http') |
| 17 theScript.src = src + forceRedownload; |
| 18 else if (BASE_URL) |
| 19 theScript.src = BASE_URL + src + forceRedownload; |
| 20 else |
| 21 theScript.src = chrome.extension.getURL(src) + forceRedownload; |
| 22 document.getElementsByTagName('head')[0].appendChild(theScript); |
| 23 } |
| 24 |
| 25 loadScript('chromevox/background/bookmark_manager.js'); |
OLD | NEW |