mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-04 12:16:51 +00:00
Make pdfjs default if not set
This commit is contained in:
parent
9064a9d9df
commit
abf04f7e1a
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@ define [
|
|||
App.controller "SettingsController", ["$scope", "settings", "ide", ($scope, settings, ide) ->
|
||||
if $scope.settings.mode not in ["default", "vim", "emacs"]
|
||||
$scope.settings.mode = "default"
|
||||
|
||||
if $scope.settings.pdfViewer not in ["pdfjs", "native"]
|
||||
$scope.settings.pdfViewer = "pdfjs"
|
||||
|
||||
$scope.$watch "settings.theme", (theme, oldTheme) =>
|
||||
if theme != oldTheme
|
||||
|
|
Loading…
Reference in a new issue