mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
Merge branch 'fix/notification' into 'master'
updated pusher to use environtment key See merge request CIEFWorldwideSdnBhd/exchange!122
This commit is contained in:
@@ -535,7 +535,7 @@ export default {
|
||||
listen(){
|
||||
window.Echo = new Echo({
|
||||
broadcaster: 'pusher',
|
||||
key: '20cae353616471c0c765',
|
||||
key: window.config.pusherUrl,
|
||||
cluster: 'ap1',
|
||||
encrypted: true,
|
||||
auth: {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user