updates to camp and things
This commit is contained in:
parent
16e1340a7c
commit
7724a42e73
442 changed files with 97335 additions and 8 deletions
35
static/js/cljs-runtime/goog.fs.url.js
Normal file
35
static/js/cljs-runtime/goog.fs.url.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
goog.provide("goog.fs.url");
|
||||
goog.fs.url.createObjectUrl = function(obj) {
|
||||
return goog.fs.url.getUrlObject_().createObjectURL(obj);
|
||||
};
|
||||
goog.fs.url.revokeObjectUrl = function(url) {
|
||||
goog.fs.url.getUrlObject_().revokeObjectURL(url);
|
||||
};
|
||||
goog.fs.url.UrlObject_ = function() {
|
||||
};
|
||||
goog.fs.url.UrlObject_.prototype.createObjectURL = function(arg) {
|
||||
};
|
||||
goog.fs.url.UrlObject_.prototype.revokeObjectURL = function(s) {
|
||||
};
|
||||
goog.fs.url.getUrlObject_ = function() {
|
||||
const urlObject = goog.fs.url.findUrlObject_();
|
||||
if (urlObject != null) {
|
||||
return urlObject;
|
||||
} else {
|
||||
throw new Error("This browser doesn't seem to support blob URLs");
|
||||
}
|
||||
};
|
||||
goog.fs.url.findUrlObject_ = function() {
|
||||
if (goog.global.URL !== undefined && goog.global.URL.createObjectURL !== undefined) {
|
||||
return goog.global.URL;
|
||||
} else if (goog.global.createObjectURL !== undefined) {
|
||||
return goog.global;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
goog.fs.url.browserSupportsObjectUrls = function() {
|
||||
return goog.fs.url.findUrlObject_() != null;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=goog.fs.url.js.map
|
Loading…
Add table
Add a link
Reference in a new issue