diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-03 00:22:10 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-03 00:22:10 -0700 |
commit | 5796566137995c8d244720f87ba85bce0e0d2f00 (patch) | |
tree | 1736e12182c7cf2769ad953029dc6a645b803802 /app/src/main/kotlin/com/pitchedapps/frost/events/WebEvent.kt | |
parent | bc197ad5769ee792d930ac5b634e1e9000230689 (diff) | |
download | frost-5796566137995c8d244720f87ba85bce0e0d2f00.tar.gz frost-5796566137995c8d244720f87ba85bce0e0d2f00.tar.bz2 frost-5796566137995c8d244720f87ba85bce0e0d2f00.zip |
css updates and beginning login migration
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.kt | 22 |
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 |