pwa open url
This commit is contained in:
		@@ -283,3 +283,16 @@ function statusModel(now) {
 | 
				
			|||||||
		poll: null
 | 
							poll: null
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					/* PWA */
 | 
				
			||||||
 | 
					if(pwa) {
 | 
				
			||||||
 | 
						function postMessage(e) {
 | 
				
			||||||
 | 
							if (e[0] == 'openUrl') {
 | 
				
			||||||
 | 
								urls = e.data[1].match(/https?:\/\/(.+)/)
 | 
				
			||||||
 | 
								if (urls) {
 | 
				
			||||||
 | 
									if(confirm("Open: " + url)) {
 | 
				
			||||||
 | 
										window.open(url)
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user