aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Buttons.hx6
-rw-r--r--src/client/Main.hx4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx
index 318ba9a..e5c36a0 100644
--- a/src/client/Buttons.hx
+++ b/src/client/Buttons.hx
@@ -137,6 +137,12 @@ class Buttons {
final showCustomEmbed = ge("#showcustomembed");
showCustomEmbed.onclick = e -> showPlayerGroup(showCustomEmbed);
+ ge("#insert_template").onclick = e -> {
+ final input:InputElement = cast ge("#mediaurl");
+ input.value = main.getTemplateUrl();
+ input.focus();
+ }
+
window.onresize = onVideoResize;
initSplit();
}
diff --git a/src/client/Main.hx b/src/client/Main.hx
index b2f51ca..8ec1704 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -646,6 +646,10 @@ class Main {
onTimeGet.run = requestTime;
}
+ public function getTemplateUrl():String {
+ return config.templateUrl;
+ }
+
function escapeRegExp(regex:String):String {
return ~/([.*+?^${}()|[\]\\])/g.replace(regex, "\\$1");
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage