mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 10:53:48 +08:00
moved event handler to bundle
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user