Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.URL.createObjectURL is not a function #15

Open
nitank opened this issue Jun 12, 2017 · 0 comments
Open

window.URL.createObjectURL is not a function #15

nitank opened this issue Jun 12, 2017 · 0 comments

Comments

@nitank
Copy link

nitank commented Jun 12, 2017

Getting issue in chrome

TypeError: window.URL.createObjectURL is not a function
at e (http://localhost:7000/bower_components/angularAudioRecorder/dist/angular-audio-recorder.min.js:1:17853)
at Function.toWorker (http://localhost:7000/bower_components/angularAudioRecorder/dist/angular-audio-recorder.min.js:1:18008)
at new r (http://localhost:7000/bower_components/angularAudioRecorder/dist/angular-audio-recorder.min.js:1:21254)
at new n (http://localhost:7000/bower_components/angularAudioRecorder/dist/angular-audio-recorder.min.js:1:1679)
at Object.invoke (http://localhost:7000/bower_components/angular/angular.js:4570:17)
at extend.instance (http://localhost:7000/bower_components/angular/angular.js:9445:34)
at nodeLinkFn (http://localhost:7000/bower_components/angular/angular.js:8550:34)
at compositeLinkFn (http://localhost:7000/bower_components/angular/angular.js:7975:13)
at compositeLinkFn (http://localhost:7000/bower_components/angular/angular.js:7978:13)
at compositeLinkFn (http://localhost:7000/bower_components/angular/angular.js:7978:13)

in minjs -
r=window.URL.createObjectURL(new Blob(["(",n,")

possible solution is -
var myURL = window.URL || window.webkitURL
var fileURL = myURL.createObjectURL(file);

any possible way to set url through service??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant