Merge pull request #21 from seripap/bugfix/ios-fileupload

Fix for safari/ios not being able to access filereader
This commit is contained in:
Alan Friedman 2016-02-26 09:30:25 -05:00
commit 8a0b93254b
3 changed files with 15 additions and 4 deletions

View File

@ -128,9 +128,6 @@ export default class FileHandler {
listen() { listen() {
// browser API // browser API
document.getElementById('fileInput').addEventListener('change', this.confirmTransfer.bind(this), false); document.getElementById('fileInput').addEventListener('change', this.confirmTransfer.bind(this), false);
// darkwire
return this; return this;
} }

View File

@ -51,6 +51,7 @@ export default class WindowHandler {
window.onblur = () => { window.onblur = () => {
this._isActive = false; this._isActive = false;
}; };
} }
} }

View File

@ -47,6 +47,10 @@ html, body {
padding: 0; padding: 0;
} }
img {
max-width: 100%;
}
@font-face { @font-face {
font-family: 'SourceCodePro-Regular'; font-family: 'SourceCodePro-Regular';
src: url('fonts/SourceCodePro-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/SourceCodePro-Regular.woff') format('woff'), url('fonts/SourceCodePro-Regular.ttf') format('truetype'), url('fonts/SourceCodePro-Regular.svg#SourceCodePro-Regular') format('svg'); src: url('fonts/SourceCodePro-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/SourceCodePro-Regular.woff') format('woff'), url('fonts/SourceCodePro-Regular.ttf') format('truetype'), url('fonts/SourceCodePro-Regular.svg#SourceCodePro-Regular') format('svg');
@ -308,7 +312,16 @@ html.no-touchevents .chat #input-icons {
} }
#fileInput { #fileInput {
display: none; position: absolute;
top: 0;
right: 45px;
margin: 0;
opacity: 0;
-ms-filter: 'alpha(opacity=0)';
font-size: 200px;
direction: ltr;
cursor: pointer;
width: 45px;
} }
.file-disclaimer { .file-disclaimer {