Propagate root prefix into JaaScript environment
authorJoey Schulze <joey@infodrom.org>
Sat, 8 Jun 2019 14:10:20 +0000 (16:10 +0200)
committerJoey Schulze <joey@infodrom.org>
Sat, 8 Jun 2019 14:10:20 +0000 (16:10 +0200)
Styles/service.style

index 3c218c8..8d72dc2 100644 (file)
@@ -120,4 +120,7 @@ while (strlen($dir) > 1) {
 
 require_once('<root_prefix>/future.php');
 ?>
+<script type="text/javascript">
+var SERVICE_ROOT = '<root_prefix>';
+</script>
 </define-tag>