ed
This commit is contained in:
		
							parent
							
								
									1032235744
								
							
						
					
					
						commit
						cb8b683d43
					
				
					 292 changed files with 15840 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								resources/[phone]/roadphone/public/custom_apps/app.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								resources/[phone]/roadphone/public/custom_apps/app.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
class CustomApp {
 | 
			
		||||
    constructor() {
 | 
			
		||||
        window.addEventListener('message', (event) => {
 | 
			
		||||
            if (!event.data) return
 | 
			
		||||
            const e = event.data
 | 
			
		||||
            if (e.customevent === 'test') {
 | 
			
		||||
                console.log(`TEST!`)
 | 
			
		||||
            }
 | 
			
		||||
        })
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const customApp = new CustomApp()
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue