Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
13
gaia/apps/email/js/mime_to_class.js
Executable file
13
gaia/apps/email/js/mime_to_class.js
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
define(function() {
|
||||
/**
|
||||
* Given a mime type, generates a CSS class name that uses just the first part
|
||||
* of the mime type. So, audio/ogg becomes mime-audio.
|
||||
* @param {String} mimeType
|
||||
* @return {String} a class name usable in CSS.
|
||||
*/
|
||||
return function mimeToClass(mimeType) {
|
||||
mimeType = mimeType || '';
|
||||
return 'mime-' + (mimeType.split('/')[0] || '');
|
||||
};
|
||||
});
|
||||
Loading…
Reference in a new issue