Skip to content

Commit

Permalink
프로필 설정 스킨에서 desktop/mobile 구분이 안되는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
woongbin committed Jul 24, 2019
1 parent 9734915 commit 400652c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Providers/UserServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,10 @@ protected function addUserSettingSection()
['assets/core/xe-ui-component/js/xe-form.js', 'assets/core/xe-ui-component/js/xe-page.js']
)->load();

$this->app['xe.skin']->setMobileResolver(function () {
return app('request')->isMobile();
});

$skin = $this->app['xe.skin']->getAssigned('user/settings');

return $skin->setView('edit')->setData(compact('user', 'fieldTypes'));
Expand Down

0 comments on commit 400652c

Please sign in to comment.