moved event handler to bundle

This commit is contained in:
Wyatt Johnson
2018-05-25 11:51:43 -06:00
parent 540df09b5b
commit c1eab3f2c6
2 changed files with 5 additions and 7 deletions
+5
View File
@@ -8,6 +8,11 @@ import reducers from './reducers';
import TalkProvider from 'coral-framework/components/TalkProvider';
import pluginsConfig from 'pluginsConfig';
// Resolves touch handling issues encountered on IOS Safari under certain
// circumstances. It may be related to issues reported here:
// https://stackoverflow.com/questions/12363742/touchstart-event-is-not-firing-inside-iframe-ios-6
document.body.addEventListener('touchstart', () => {});
async function main() {
const context = await createContext({
reducers,
-7
View File
@@ -9,13 +9,6 @@
{% block html %}
<div id="talk-embed-stream-container"></div>
{#
Resolves touch handling issues encountered on IOS Safari under certain circumstances:
https://stackoverflow.com/questions/12363742/touchstart-event-is-not-firing-inside-iframe-ios-6
#}
<script nonce="{{ nonce }}">document.body.addEventListener('touchstart', function() {});</script>
{% endblock %}
{% block js %}