Commit a4bfc088 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Remove obsolete function thanks to mimetype library

parent 06fd9e9d
......@@ -5,14 +5,6 @@
mimeType) {
"use strict";
function getExtension(url) {
var extension = url.split('.').pop();
if (extension.endsWith('/')) {
return ".html";
}
return "." + extension;
}
function log(gadget, str, klass) {
var p = document.createElement('p'),
old_p_element = gadget.props.element.querySelector(klass + ' p'),
......
......@@ -4,14 +4,6 @@
(function (window, document, RSVP, rJS, location, console, JSZip, mimeType) {
"use strict";
function getExtension(url) {
var extension = url.split('.').pop();
if (extension.endsWith('/')) {
return ".html";
}
return "." + extension;
}
function loadZipIntoCrib(gadget, zip, from_path, path_to_load, logFunction) {
if (logFunction === undefined) {
logFunction = console.log;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment