Skip to content

Commit

Permalink
Add exception var to catch stmt to fix rollup (meetecho#1848)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9810215)
  • Loading branch information
poloagustin authored and remgodow committed May 14, 2020
1 parent f5414f1 commit 672545f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ Makefile.in

# CLion
.idea

.vscode
8 changes: 4 additions & 4 deletions html/janus.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,21 +299,21 @@ Janus.init = function(options) {
Janus.attachMediaStream = function(element, stream) {
try {
element.srcObject = stream;
} catch {
} catch (e) {
try {
element.src = URL.createObjectURL(stream);
} catch {
} catch (e) {
Janus.error("Error attaching stream to element");
}
}
};
Janus.reattachMediaStream = function(to, from) {
try {
to.srcObject = from.srcObject;
} catch {
} catch (e) {
try {
to.src = from.src;
} catch {
} catch (e) {
Janus.error("Error reattaching stream to element");
}
}
Expand Down

0 comments on commit 672545f

Please sign in to comment.