mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Integrate Safari scroll patcher.
This commit is contained in:
parent
f012a6fe32
commit
9b3a28048e
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,7 @@ define [
|
|||
"ide/pdf/PdfManager"
|
||||
"ide/binary-files/BinaryFilesManager"
|
||||
"ide/references/ReferencesManager"
|
||||
"ide/SafariScrollPatcher"
|
||||
"ide/settings/index"
|
||||
"ide/share/index"
|
||||
"ide/chat/index"
|
||||
|
@ -40,6 +41,7 @@ define [
|
|||
PdfManager
|
||||
BinaryFilesManager
|
||||
ReferencesManager
|
||||
SafariScrollPatcher
|
||||
) ->
|
||||
|
||||
App.controller "IdeController", ($scope, $timeout, ide, localStorage, event_tracking) ->
|
||||
|
@ -135,6 +137,9 @@ define [
|
|||
catch err
|
||||
console.error err
|
||||
|
||||
if ide.browserIsSafari
|
||||
ide.safariScrollPatcher = new SafariScrollPatcher(ide, $scope)
|
||||
|
||||
# User can append ?ft=somefeature to url to activate a feature toggle
|
||||
ide.featureToggle = location?.search?.match(/^\?ft=(\w+)$/)?[1]
|
||||
|
||||
|
|
Loading…
Reference in a new issue