Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: files/download.js

Issue 8483154: Adding ABP core modules to ABP/Opera (Closed)
Patch Set: Created Oct. 11, 2012, 9:35 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: files/download.js
===================================================================
deleted file mode 100644
--- a/files/download.js
+++ /dev/null
@@ -1,16 +0,0 @@
-function download(url) {
- if(url.indexOf("http") == 0) { //Only accepts http and https URLs
- try {
- var request = new window.XMLHttpRequest();
- request.open('GET', url, false);
- if(opera.version() >= 12.1)
- request.timeout(12000); //Only supported in Opera 12.1+, 12 seconds timeout
- request.send();
- if (request.readyState == 4 && request.status == 200) {
- return request.responseText;
- }
- }
- catch(e) {}
- }
- return false;
-}

Powered by Google App Engine
This is Rietveld