Skip to content
Browse files

Bug 826394 - Don't show videos in gallery picker

  • Loading branch information...
1 parent dedfce7 commit b84e1b2f78c8e9a049651dc5581302f1267b7647 @ttaubert ttaubert committed with samjoch
Showing with 2 additions and 0 deletions.
  1. +2 −0 apps/gallery/js/gallery.js
View
2 apps/gallery/js/gallery.js
@@ -114,6 +114,8 @@ var visibilityMonitor;
// The localized event is the main entry point for the app.
// We don't do anything until we receive it.
window.addEventListener('localized', function showBody() {
+ window.removeEventListener('localized', showBody);
+
// Set the 'lang' and 'dir' attributes to <html> when the page is translated
document.documentElement.lang = navigator.mozL10n.language.code;
document.documentElement.dir = navigator.mozL10n.language.direction;

0 comments on commit b84e1b2

Please sign in to comment.
Something went wrong with that request. Please try again.