mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
Merge pull request #21 from seripap/bugfix/ios-fileupload
Fix for safari/ios not being able to access filereader
This commit is contained in:
commit
8a0b93254b
@ -128,9 +128,6 @@ export default class FileHandler {
|
||||
listen() {
|
||||
// browser API
|
||||
document.getElementById('fileInput').addEventListener('change', this.confirmTransfer.bind(this), false);
|
||||
|
||||
// darkwire
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -51,6 +51,7 @@ export default class WindowHandler {
|
||||
window.onblur = () => {
|
||||
this._isActive = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -47,6 +47,10 @@ html, body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
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');
|
||||
@ -308,7 +312,16 @@ html.no-touchevents .chat #input-icons {
|
||||
}
|
||||
|
||||
#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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user