Merge branch 'fix/notification' into 'master'

updated pusher to use environtment key

See merge request CIEFWorldwideSdnBhd/exchange!122
This commit is contained in:
Jack Goh
2018-08-17 01:41:30 +00:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -535,7 +535,7 @@ export default {
listen(){
window.Echo = new Echo({
broadcaster: 'pusher',
key: '20cae353616471c0c765',
key: window.config.pusherUrl,
cluster: 'ap1',
encrypted: true,
auth: {
+1 -1
View File
@@ -4,6 +4,7 @@ $config = [
'locale' => $locale = app()->getLocale(),
'locales' => config('app.locales'),
'githubAuth' => config('services.github.client_id'),
'pusherUrl' => env('PUSHER_APP_KEY'),
];
$polyfills = [
@@ -36,7 +37,6 @@ $polyfills = [
{{-- Global configuration object --}}
<script>window.config = @json($config);</script>
{{-- Polyfill JS features via polyfill.io --}}
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features={{ implode(',', $polyfills) }}"></script>