[start page] support for svg icons

This commit is contained in:
Maxim Kadushkin
2018-10-09 16:58:40 +03:00
parent 3a5bdce552
commit 141510d28e
9 changed files with 53 additions and 5 deletions

View File

@ -6,11 +6,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-uglify-es');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-htmlmin');
grunt.loadNpmTasks('grunt-text-replace');
grunt.loadNpmTasks('grunt-inline');
function doRegisterInitializeAppTask(name, appName, configFile) {
return grunt.registerTask('init-build-' + name, 'Initialize build ' + appName, function(){
@ -94,7 +95,7 @@ module.exports = function(grunt) {
separate_target: {
options: {
mangle: {
sort: true
// sort: true
}
},
files: {
@ -121,6 +122,13 @@ module.exports = function(grunt) {
}
},
inline: {
dist: {
src: '../deploy/index.html',
dest: '../deploy/index.html'
}
},
clean: {
options: {
force: true
@ -162,6 +170,7 @@ module.exports = function(grunt) {
doRegisterInitializeAppTask('startpage', 'Desktop start page', 'startpage.json');
grunt.registerTask('deploy-desktop-startpage', ['desktop-app-extra', 'copy', 'less', 'uglify:separate_target', 'concat', 'clean', 'uglify', 'htmlmin', 'compile-html']);
grunt.registerTask('deploy-desktop-startpage', ['desktop-app-extra', 'copy', 'less', 'uglify:separate_target',
'concat', 'clean', 'inline', 'uglify', 'htmlmin', 'compile-html']);
grunt.registerTask('default', ['init-build-startpage','deploy-desktop-startpage']);
};

View File

@ -5,13 +5,14 @@
"private": true,
"dependencies": {
"lodash": "^4.0.0",
"grunt": "0.4.5",
"grunt": "1.0.2",
"grunt-text-replace": "0.4.0",
"grunt-contrib-less": "^1.1.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-uglify": "^0.11.0",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-htmlmin": "^0.6.0"
"grunt-contrib-htmlmin": "^0.6.0",
"grunt-inline": "0.3.4"
}
}

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="133.892" height="94.627">
<symbol id="logo__nextcloud" viewBox="0 0 133.892 94.627">
<path style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;isolation:auto;mix-blend-mode:normal" d="M67.033 10c-11.805 0-21.811 8.003-24.913 18.847-2.695-5.752-8.535-9.781-15.263-9.781C17.605 19.066 10 26.67 10 35.923c0 9.252 7.605 16.86 16.857 16.86 6.728 0 12.568-4.032 15.263-9.784 3.102 10.844 13.108 18.85 24.913 18.85 11.718 0 21.673-7.885 24.853-18.607 2.745 5.622 8.514 9.541 15.145 9.541 9.252 0 16.861-7.608 16.861-16.86 0-9.252-7.609-16.857-16.86-16.857-6.632 0-12.4 3.917-15.146 9.538C88.706 17.882 78.751 10 67.033 10zm0 9.895c8.911 0 16.03 7.116 16.03 16.028 0 8.911-7.119 16.03-16.03 16.03a15.954 15.954 0 0 1-16.027-16.03 15.951 15.951 0 0 1 16.027-16.028zm-40.176 9.066c3.904 0 6.965 3.057 6.965 6.962 0 3.904-3.06 6.965-6.965 6.965-3.904 0-6.961-3.06-6.961-6.965s3.057-6.962 6.961-6.962zm80.174 0c3.905 0 6.966 3.057 6.966 6.962 0 3.904-3.061 6.965-6.966 6.965-3.904 0-6.961-3.06-6.961-6.965s3.057-6.962 6.961-6.962z" color="#000" font-weight="400" font-family="sans-serif" white-space="normal" overflow="visible" fill="#0082c9"/><g fill="#0082c9"><path d="M39.108 73.761c2.776 0 4.328 1.976 4.328 4.94a.522.522 0 0 1-.517.517h-7.48c.047 2.634 1.882 4.14 3.999 4.14a4.384 4.384 0 0 0 2.728-.941c.282-.189.517-.142.658.14l.142.236c.14.235.094.47-.142.658a5.83 5.83 0 0 1-3.433 1.13c-3.058 0-5.41-2.212-5.41-5.41.047-3.387 2.305-5.41 5.127-5.41zm2.87 4.422c-.094-2.164-1.411-3.246-2.917-3.246-1.74 0-3.245 1.13-3.575 3.246h6.492zM57.562 75.267v-3.622c0-.33.188-.518.517-.518h.377c.329 0 .47.188.47.518v2.446h2.117c.329 0 .517.188.517.517v.141c0 .33-.188.47-.517.47h-2.117v5.175c0 2.399 1.458 2.681 2.258 2.728.423.047.564.141.564.518v.282c0 .329-.14.47-.564.47-2.258 0-3.622-1.364-3.622-3.81v-5.315zM68.334 73.761c1.787 0 2.916.753 3.433 1.176.236.189.283.424.047.706l-.14.235c-.189.282-.424.282-.706.094-.47-.329-1.364-.94-2.587-.94-2.258 0-4.046 1.693-4.046 4.186 0 2.446 1.788 4.14 4.046 4.14 1.458 0 2.446-.66 2.916-1.083.282-.188.47-.14.659.142l.14.188c.142.282.095.47-.14.705a5.788 5.788 0 0 1-3.67 1.317c-3.057 0-5.409-2.21-5.409-5.41.047-3.198 2.4-5.456 5.457-5.456zM74.59 70.422c0-.33-.188-.518.14-.518h.377c.33 0 .847.188.847.518v11.242c0 1.317.611 1.458 1.082 1.505.235 0 .423.141.423.47v.33c0 .33-.141.517-.517.517-.847 0-2.352-.282-2.352-2.54V70.422zM84.233 73.761c3.01 0 5.456 2.305 5.456 5.363 0 3.104-2.446 5.456-5.456 5.456-3.01 0-5.457-2.352-5.457-5.456 0-3.058 2.446-5.363 5.457-5.363zm0 9.596c2.21 0 3.998-1.787 3.998-4.233 0-2.352-1.788-4.093-3.998-4.093-2.211 0-4.046 1.788-4.046 4.093.047 2.399 1.835 4.233 4.046 4.233zM107.705 73.761c2.493 0 3.387 2.07 3.387 2.07h.047s-.047-.33-.047-.8v-4.656c0-.33-.141-.518.188-.518h.376c.33 0 .847.188.847.518V83.78c0 .329-.141.517-.47.517h-.33c-.33 0-.517-.141-.517-.47v-.8c0-.376.094-.659.094-.659h-.047s-.894 2.164-3.575 2.164c-2.775 0-4.516-2.21-4.516-5.41-.094-3.198 1.835-5.362 4.563-5.362zm.047 9.596c1.74 0 3.34-1.223 3.34-4.186 0-2.117-1.082-4.14-3.293-4.14-1.835 0-3.34 1.506-3.34 4.14.047 2.54 1.364 4.186 3.293 4.186zM21.86 84.345h.376c.33 0 .517-.188.517-.517v-10.1c0-1.6 1.74-2.742 3.716-2.742 1.976 0 3.716 1.142 3.716 2.741v10.1c0 .33.189.518.518.518h.376c.33 0 .47-.188.47-.517v-10.16c0-2.682-2.68-3.999-5.127-3.999-2.352 0-5.033 1.317-5.033 3.998v10.16c0 .33.141.518.47.518zM100.367 73.997h-.376c-.33 0-.518.188-.518.517v5.692c0 1.599-1.035 3.057-3.057 3.057-1.976 0-3.058-1.458-3.058-3.057v-5.692c0-.33-.188-.517-.517-.517h-.377c-.329 0-.47.188-.47.517v6.068c0 2.681 1.976 3.998 4.422 3.998 2.446 0 4.421-1.317 4.421-3.998v-6.068c.047-.33-.14-.517-.47-.517zM53.803 73.92c-.116.018-.226.095-.332.22l-1.904 2.27-1.425 1.698-2.157-2.572-1.17-1.395a.522.522 0 0 0-.35-.206.522.522 0 0 0-.38.142l-.288.242c-.252.212-.24.446-.028.698l1.905 2.27 1.58 1.881-2.313 2.755-.005.007-1.167 1.39c-.211.252-.188.518.065.73l.288.24c.252.212.481.158.693-.094l1.903-2.269 1.425-1.698 2.157 2.572.005.004 1.167 1.391c.212.253.476.275.728.064l.289-.242c.252-.212.24-.446.027-.698l-1.904-2.27-1.58-1.881 2.313-2.755.005-.007 1.166-1.39c.212-.252.188-.517-.064-.73l-.288-.24c-.126-.107-.246-.146-.361-.128z"/></g>
</symbol>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -0,0 +1,5 @@
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="324.7" height="60">
<symbol id="logo__asc" viewBox="0 0 324.7 60">
<defs><style>.svg--asc1{fill:#5b5b5b}.svg--asc2{fill:#3a3a3a;}</style><linearGradient id="a" data-name="New Gradient Swatch 4" x1="32.78" y1="71.17" x2="32.78" y2="25.17" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fcc2b1"/><stop offset=".88" stop-color="#d9420b"/></linearGradient><linearGradient id="b" x1="32.78" y1="51.69" x2="32.78" y2="21.41" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#deedc9"/><stop offset=".66" stop-color="#8bba25"/></linearGradient><linearGradient id="c" x1="32.78" y1="40.18" x2="32.78" y2="-.99" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#c2ebfa"/><stop offset="1" stop-color="#26a8de"/></linearGradient></defs><path d="M76.9 29.7q0-7.9 4.5-12a16 16 0 0 1 10.7-3.9 15.6 15.6 0 0 1 10.6 3.9c3.1 2.7 4.6 6.7 4.6 12s-1.5 9.3-4.6 11.9a15.2 15.2 0 0 1-10.6 4 15.6 15.6 0 0 1-10.7-4c-3-2.6-4.5-6.6-4.5-11.9zm6.6 0c0 3.6.7 6.3 2 8a8.8 8.8 0 0 0 4.5 3.2l1.1.2h2.1l1.1-.2a8.5 8.5 0 0 0 4.4-3.3c1.3-1.7 2-4.3 2-7.9s-.7-6.2-2-8a8.8 8.8 0 0 0-4.4-3.2l-1.1-.2h-2.1l-1.1.2a8.8 8.8 0 0 0-4.5 3.2c-1.3 1.7-2 4.4-2 8zM110.6 14.1h8.2l10.8 19.6 1.6 4.2h.1l-.1-5.5V14.1h6.3v31.1h-8.2l-10.8-20.4-1.6-3.4h-.1l.1 5.5v18.3h-6.3V14.1zM144 14.1h6.3V40h12.4v5.2H144V14.1zM158.8 14.1h7.3l6.4 10.9 1 2.2h.2l1-2.2 6.5-10.9h6.7l-11.3 18.5v12.6h-6.3V32.5l-11.5-18.4z" class="svg--asc1" /><path d="M187.1 29.7c0-5.3 1.6-9.3 4.6-12a16.5 16.5 0 0 1 21.3 0c3 2.7 4.6 6.7 4.6 12S216 39 213 41.6a16.2 16.2 0 0 1-21.3 0c-3-2.6-4.6-6.6-4.6-11.9zm6.6 0c0 3.6.7 6.3 2.1 8a8.2 8.2 0 0 0 4.4 3.2l1.1.2h2.1l1.2-.2a8.9 8.9 0 0 0 4.4-3.3c1.3-1.7 2-4.3 2-7.9s-.7-6.2-2-8a9.2 9.2 0 0 0-4.4-3.2l-1.2-.2h-2.1l-1.1.2a8.2 8.2 0 0 0-4.4 3.2c-1.4 1.7-2.1 4.4-2.1 8zM221.9 14.1h17.4v5.2h-11.1v7.6h10.6v5.2h-10.6v13.1h-6.3V14.1zM244 14.1h17.4v5.2h-11.1v7.6h10.6v5.2h-10.6v13.1H244V14.1zM265.1 45.2V14.1h6.3v31.1h-6.3zM301 14.8v5.4a20 20 0 0 0-3.5-.9 23.8 23.8 0 0 0-3.9-.3c-3.3 0-5.8 1-7.6 3.1a11.1 11.1 0 0 0-2.6 7.7 11.1 11.1 0 0 0 2.5 7.5c1.6 2.1 4 3.1 7.2 3.1l3.5-.3a12.7 12.7 0 0 0 4-1.1l.4 5.3-.9.2a4 4 0 0 1-1.3.4l-3 .5-3.7.2h-1a17.3 17.3 0 0 1-9.9-4.1c-3-2.5-4.5-6.3-4.5-11.6s1.5-9.1 4.4-11.9 6.9-4.2 11.8-4.2h3.5l3.2.5.7.2.7.2zM306 14.1h18.7V19h-12.3v7.8h11.1v4.8h-11.1v8.7h12.3v4.9H306V14.1z" class="svg--asc2"/><path d="M28.7 59.2l-27-12.6c-2.3-1-2.3-2.8 0-3.8l9.4-4.4 17.6 8.2a11.6 11.6 0 0 0 8.2 0l17.5-8.2 9.5 4.4c2.2 1 2.2 2.8 0 3.8l-27 12.6a10.6 10.6 0 0 1-8.2 0z" fill-rule="evenodd" fill="url(#a)"/><path d="M28.7 44.2l-27-12.6c-2.3-1-2.3-2.8 0-3.8l9.2-4.3 17.8 8.3a10.6 10.6 0 0 0 8.2 0l17.8-8.3 9.2 4.3c2.2 1 2.2 2.8 0 3.8l-27 12.6a10.6 10.6 0 0 1-8.2 0z" fill-rule="evenodd" fill="url(#b)"/><path d="M28.7 29.8l-27-12.6c-2.3-1-2.3-2.8 0-3.8L28.7.8a10.6 10.6 0 0 1 8.2 0l27 12.6c2.2 1 2.2 2.8 0 3.8l-27 12.6a11.6 11.6 0 0 1-8.2 0z" fill-rule="evenodd" fill="url(#c)"/>
</symbol>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="443.343" height="218.909">
<symbol id="logo__owncloud" viewBox="0 0 443.343 218.909">
<circle cx="28.999" cy="189.908" r="21.999" fill="none" stroke="#1d2d44" stroke-width="4"/><circle cx="296.512" cy="189.908" r="22.001" fill="none" stroke="#1d2d44" stroke-width="4"/><path d="M67 167.703v30.074c0 7.801 6.324 14.123 14.123 14.123 7.803 0 14.125-6.322 14.125-14.123v-30.074M95.248 167.703v30.074c0 7.801 6.324 14.123 14.125 14.123s14.125-6.322 14.125-14.123v-30.074M251.265 127.699v70.078c0 7.801 6.322 14.123 14.123 14.123M140.004 211.906v-22.201c0-12.15 9.85-22 22-22 12.152 0 22.002 9.85 22.002 22v22.201M333.009 167.703v22.205c0 12.148 9.85 21.998 22 21.998s22.002-9.85 22.002-21.998v-22.205M234.833 141.576c-19.421 0-35.167 15.744-35.167 35.166 0 19.422 15.746 35.164 35.167 35.164M436.283 127.699v40.172-.979M421.923 211.894h-7.848c-12.15 0-22-9.85-22-21.998 0-12.15 9.85-22 22-22l22.207-.025s.137 22.342 0 29.895c-.138 7.552-7.968 14.128-14.359 14.128z" fill="none" stroke="#1d2d44" stroke-width="4"/><circle cx="220.181" cy="43.648" r="20.332" fill="#1d2d44" stroke="#fff" stroke-width="4"/><circle cx="182.898" cy="114.314" r="37.242" fill="#1d2d44" stroke="#fff" stroke-width="4"/><circle cx="224.912" cy="89.533" r="40.261" fill="#1d2d44" stroke="#fff" stroke-width="4"/><circle cx="307.021" cy="73.209" r="37.242" fill="#1d2d44" stroke="#fff" stroke-width="4"/><circle cx="266.18" cy="44.241" r="37.241" fill="#1d2d44" stroke="#fff" stroke-width="4"/><circle cx="390.114" cy="128.695" r="21.3" fill="#1d2d44" stroke="#fff" stroke-width="4"/><circle cx="344.85" cy="112.3" r="40.261" fill="#1d2d44" stroke="#fff" stroke-width="4"/><circle cx="222.449" cy="130.748" r="21.299" fill="#1d2d44" stroke="#fff" stroke-width="4"/><path d="M329.794 100.406c0 28.348-22.984 51.328-51.334 51.328s-51.333-22.98-51.333-51.328c0-28.351 22.984-51.333 51.333-51.333 28.349 0 51.334 22.982 51.334 51.333z" fill="#1d2d44" stroke="#fff" stroke-width="4"/>
</symbol>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -210,6 +210,15 @@
</div>
</div>
<script src="../vendor/svg-injector/svg-injector.min.js"></script>
<img class="inline-svg" src="../res/img/logo_nextcloud.svg">
<img class="inline-svg" src="../res/img/logo_onlyoffice.svg">
<img class="inline-svg" src="../res/img/logo_owncloud.svg">
<script>
var svgpoints = document.querySelectorAll('img.inline-svg');
SVGInjector(svgpoints, {evalScripts:'never'});
</script>
<script type="text/javascript" src="../vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="../vendor/bootstrap/dropdown.js"></script>
<!-- <script type="text/javascript" src="../vendor/bootstrap/bootstrap.mods.js"></script> -->

View File

@ -194,6 +194,10 @@
</div>
</div>
<inline src="../res/img/logo_nextcloud.svg" />
<inline src="../res/img/logo_onlyoffice.svg" />
<inline src="../res/img/logo_owncloud.svg" />
<script type="text/javascript" replace="yes" src="jquery.min.js"></script>
<script type="text/javascript" replace="yes" src="dropdown.js"></script>
<script type="text/javascript" replace="yes" src="build.min.js"></script>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,9 @@
/**
* SVGInjector v1.1.3 - Fast, caching, dynamic inline SVG DOM injection library
* https://github.com/iconic/SVGInjector
*
* Copyright (c) 2014-2015 Waybury <hello@waybury.com>
* @license MIT
*/
!function(t,e){"use strict";function r(t){t=t.split(" ");for(var e={},r=t.length,n=[];r--;)e.hasOwnProperty(t[r])||(e[t[r]]=1,n.unshift(t[r]));return n.join(" ")}var n="file:"===t.location.protocol,i=e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),o=Array.prototype.forEach||function(t,e){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;var r,n=this.length>>>0;for(r=0;n>r;++r)r in this&&t.call(e,this[r],r,this)},a={},l=0,s=[],u=[],c={},f=function(t){return t.cloneNode(!0)},p=function(t,e){u[t]=u[t]||[],u[t].push(e)},d=function(t){for(var e=0,r=u[t].length;r>e;e++)!function(e){setTimeout(function(){u[t][e](f(a[t]))},0)}(e)},v=function(e,r){if(void 0!==a[e])a[e]instanceof SVGSVGElement?r(f(a[e])):p(e,r);else{if(!t.XMLHttpRequest)return r("Browser does not support XMLHttpRequest"),!1;a[e]={},p(e,r);var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(404===i.status||null===i.responseXML)return r("Unable to load SVG file: "+e),n&&r("Note: SVG injection ajax calls do not work locally without adjusting security setting in your browser. Or consider using a local webserver."),r(),!1;if(!(200===i.status||n&&0===i.status))return r("There was a problem injecting the SVG: "+i.status+" "+i.statusText),!1;if(i.responseXML instanceof Document)a[e]=i.responseXML.documentElement;else if(DOMParser&&DOMParser instanceof Function){var t;try{var o=new DOMParser;t=o.parseFromString(i.responseText,"text/xml")}catch(l){t=void 0}if(!t||t.getElementsByTagName("parsererror").length)return r("Unable to parse SVG file: "+e),!1;a[e]=t.documentElement}d(e)}},i.open("GET",e),i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()}},h=function(e,n,a,u){var f=e.getAttribute("data-src")||e.getAttribute("src");if(!/\.svg/i.test(f))return void u("Attempted to inject a file with a non-svg extension: "+f);if(!i){var p=e.getAttribute("data-fallback")||e.getAttribute("data-png");return void(p?(e.setAttribute("src",p),u(null)):a?(e.setAttribute("src",a+"/"+f.split("/").pop().replace(".svg",".png")),u(null)):u("This browser does not support SVG and no PNG fallback was defined."))}-1===s.indexOf(e)&&(s.push(e),e.setAttribute("src",""),v(f,function(i){if("undefined"==typeof i||"string"==typeof i)return u(i),!1;var a=e.getAttribute("id");a&&i.setAttribute("id",a);var p=e.getAttribute("title");p&&i.setAttribute("title",p);var d=[].concat(i.getAttribute("class")||[],"injected-svg",e.getAttribute("class")||[]).join(" ");i.setAttribute("class",r(d));var v=e.getAttribute("style");v&&i.setAttribute("style",v);var h=[].filter.call(e.attributes,function(t){return/^data-\w[\w\-]*$/.test(t.name)});o.call(h,function(t){t.name&&t.value&&i.setAttribute(t.name,t.value)});var g,m,b,y,A,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach(function(t){g=t,b=w[t],m=i.querySelectorAll("defs "+g+"[id]");for(var e=0,r=m.length;r>e;e++){y=m[e].id,A=y+"-"+l;var n;o.call(b,function(t){n=i.querySelectorAll("["+t+'*="'+y+'"]');for(var e=0,r=n.length;r>e;e++)n[e].setAttribute(t,"url(#"+A+")")}),m[e].id=A}}),i.removeAttribute("xmlns:a");for(var x,S,k=i.querySelectorAll("script"),j=[],G=0,T=k.length;T>G;G++)S=k[G].getAttribute("type"),S&&"application/ecmascript"!==S&&"application/javascript"!==S||(x=k[G].innerText||k[G].textContent,j.push(x),i.removeChild(k[G]));if(j.length>0&&("always"===n||"once"===n&&!c[f])){for(var M=0,V=j.length;V>M;M++)new Function(j[M])(t);c[f]=!0}var E=i.querySelectorAll("style");o.call(E,function(t){t.textContent+=""}),e.parentNode.replaceChild(i,e),delete s[s.indexOf(e)],e=null,l++,u(i)}))},g=function(t,e,r){e=e||{};var n=e.evalScripts||"always",i=e.pngFallback||!1,a=e.each;if(void 0!==t.length){var l=0;o.call(t,function(e){h(e,n,i,function(e){a&&"function"==typeof a&&a(e),r&&t.length===++l&&r(l)})})}else t?h(t,n,i,function(e){a&&"function"==typeof a&&a(e),r&&r(1),t=null}):r&&r(0)};"object"==typeof module&&"object"==typeof module.exports?module.exports=exports=g:"function"==typeof define&&define.amd?define(function(){return g}):"object"==typeof t&&(t.SVGInjector=g)}(window,document);
//# sourceMappingURL=svg-injector.map.js