mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Capture client javascript errors with sentry too
This commit is contained in:
		@@ -336,6 +336,8 @@
 | 
			
		||||
    <script src="{{ url_for('static', filename='js/vendor/emoji.min.js') }}"></script>
 | 
			
		||||
    <script src="{{ url_for('static', filename='js/vendor/wdt-emoji-bundle.min.js') }}"></script>
 | 
			
		||||
 | 
			
		||||
    {% include 'sentry_js_init.html.j2' %}
 | 
			
		||||
 | 
			
		||||
    {% raw %}
 | 
			
		||||
    <script id="mustache_channellistings" type="text/template">
 | 
			
		||||
      <li><a class="waves-effect truncate" id="channel-{{channelid}}"><span class="channel-hash">#</span> {{channelname}}</a></li>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								webapp/titanembeds/templates/sentry_js_init.html.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								webapp/titanembeds/templates/sentry_js_init.html.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
<script src="https://cdn.ravenjs.com/3.26.2/raven.min.js" crossorigin="anonymous"></script>
 | 
			
		||||
<script>
 | 
			
		||||
  Raven.config({{ sentry_js_dsn|tojson|safe }}).install();
 | 
			
		||||
</script>
 | 
			
		||||
@@ -93,6 +93,8 @@
 | 
			
		||||
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
 | 
			
		||||
    <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js" integrity="sha256-uWtSXRErwH9kdJTIr1swfHFJn/d/WQ6s72gELOHXQGM=" crossorigin="anonymous"></script>
 | 
			
		||||
    
 | 
			
		||||
    {% include 'sentry_js_init.html.j2' %}
 | 
			
		||||
    
 | 
			
		||||
    {% if not dbl_voted or (dbl_voted and request.path == "/") %}
 | 
			
		||||
    <script>
 | 
			
		||||
      $(document).ready(function () {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user