Merge pull request #13937 from nextcloud/refactor/remove-unused-matchmedia
Remove unused OC._matchMedia helper
This commit is contained in:
commit
5c23f975d2
1 changed files with 0 additions and 14 deletions
|
@ -753,20 +753,6 @@ Object.assign(window.OC, {
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Wrapper for matchMedia
|
||||
*
|
||||
* This is makes it possible for unit tests to
|
||||
* stub matchMedia (which doesn't work in PhantomJS)
|
||||
* @private
|
||||
*/
|
||||
_matchMedia: function(media) {
|
||||
if (window.matchMedia) {
|
||||
return window.matchMedia(media);
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the user's locale as a BCP 47 compliant language tag
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue