summaryrefslogtreecommitdiff
path: root/frontend/app/views/site/site.actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/views/site/site.actions.js')
-rw-r--r--frontend/app/views/site/site.actions.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/app/views/site/site.actions.js b/frontend/app/views/site/site.actions.js
new file mode 100644
index 0000000..9c66933
--- /dev/null
+++ b/frontend/app/views/site/site.actions.js
@@ -0,0 +1,6 @@
+import * as types from 'app/types'
+
+export const setSiteTitle = title => dispatch => {
+ document.querySelector('title').innerText = title
+ dispatch({ type: types.site.set_site_title, payload: title })
+}