aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/events/WebEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/events/WebEvent.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/events/WebEvent.kt22
1 files changed, 0 insertions, 22 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/events/WebEvent.kt b/app/src/main/kotlin/com/pitchedapps/frost/events/WebEvent.kt
deleted file mode 100644
index a2eb6907..00000000
--- a/app/src/main/kotlin/com/pitchedapps/frost/events/WebEvent.kt
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.pitchedapps.frost.events
-
-import com.pitchedapps.frost.web.FrostWebViewCore
-
-/**
- * Created by Allan Wang on 2017-05-31.
- */
-class WebEvent(val key: Int, val urlMatch: String? = null) {
-
- companion object {
- const val REFRESH = 0
- const val REFRESH_BASE = 1
- }
-
- fun execute(webView: FrostWebViewCore) {
- if (urlMatch != null && !webView.url.contains(urlMatch)) return
- when (key) {
- REFRESH -> webView.reload()
- REFRESH_BASE -> webView.loadUrl(webView.baseUrl)
- }
- }
-} \ No newline at end of file