Commit graph

18 commits

Author SHA1 Message Date
Gökay Şatır
df17064597 Add a comment for window.app definition into global.js file.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I111eda6182235a307b40a297466a1fb4a74ad5bf
2022-04-15 16:37:51 +03:00
Gökay Şatır
4f4c11a886 Moved window.app variable into its own file.
"socket" and "console" variables are used at initialization, so they are left in global.js file.

Debugging of window.app object's variables is now easier.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ic2811ff45ce845cb32d15018eaa2fa9e140202d7
2022-04-15 16:37:51 +03:00
Jan Holesovsky
4bef530844 Escape some parameters for a good measure
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: Ie5d2017ed6ce9f38623b42b336c5261be322b025
2022-03-21 21:35:27 +01:00
Mert Tumer
85310c888c fix sidebar can be visible on pdf
it appears that sidebar callback can arrive before
docloaded message when it is already loaded in the background
Also app.file.fileBasedView parameter is set after docloaded
so it wasnt a correct fix. perm: message arrives before document
initialization and we can hide sidebar unless the arrived messsage is
not 'edit'. if the user have edit mode, it will be up to the users preference

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ifb220d8bb8baad0078bcd32f71ee6853d31adfb8
2022-02-16 15:27:14 +03:00
Alexandru Vlăduţu
04b50d5b3b browser: add missing error method for logging
Signed-off-by: Alexandru Vlăduţu <alexandru.vladutu@1and1.ro>
Change-Id: Id4aa67e98779dd0d5c92172425baa753fcaca27c
2022-02-14 15:57:52 +00:00
Michael Meeks
d2d1615b13 Allow protocol logging to be enabled from debug overlay.
Change-Id: Ica0765242b82a2da86722da0b40b6ecdf401d383
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-02-12 16:23:19 +00:00
Alexandru Vlăduţu
65f8476818 browser: add optional function to process the URLs (internal and user
generated)

Signed-off-by: Alexandru Vlăduţu <alexandru.vladutu@1and1.ro>
Change-Id: If83611cc17d00dd049093de0a35caa7739f10400
2022-01-28 11:40:40 +01:00
Alexandru Vlăduţu
eac3201c05 browser: improve logging by using custom logging methods instead of console ones directly
Signed-off-by: Alexandru Vlăduţu <alexandru.vladutu@1and1.ro>
Change-Id: Id4ad5711c85998ce71ba0849fca5fe6dc580f395
2022-01-24 21:06:42 +00:00
Andras Timar
0752cf0bad Enable localization of label 'Recent' on color palette
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id9f3ca5e0979977f7e269331996c483df0a3992f
2022-01-13 22:22:41 +01:00
Mert Tumer
e683cf26d1 notebookbar: use more advanced optioned Conditional Formatting control
Home tab's contitional formatting control is old and is not the same
as Format's tabs control. Now they are the same except for addition to iconset overlay

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I9a08cda3a2ff98a18e711ba4a17bd8ebb8b4027b
2022-01-04 11:36:35 +03:00
Tor Lillqvist
ed32beef5c Prefer "(no message)" etc to "[object Object]"
At least for me, whenever I have seen the result of that code logged
in Xcode when debugging the iOS app, the lines for the "description"
and "stack" have said just "[object Object]". It is unclear whether
that is because the code explicitly assigns the empty object {} to the
desc and stack variables here, or because err.message and/or err.stack
do exist but are objects, not strings.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I08a2fa361baf20814a40249d30ff49ba39292aa6
2021-12-20 14:46:21 +01:00
Andras Timar
f07ff8c7e0 rename: remaining lool->cool changes
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib7d4e804bebe52dead8d53b0e0bbaed0f08bf3d0
2021-11-18 14:14:11 +01:00
Gökay ŞATIR
81f98cf879 l10.js: Set window language tag.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I47d83bd8cb73b84899b8e450c28e6c3f3031acf4
2021-11-18 15:20:12 +03:00
Gökay ŞATIR
4da055d695 Cosmetic changes.
Whitespace.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I83ceb3e8c0f04aafb844d548708ecaf5bc565a2f
2021-11-18 15:20:12 +03:00
Andras Timar
de3e09fde0 rename wsd protocol command 'loolclient' to 'coolclient'
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I506fe74bc5ebf183ed21721b40a45210373abf06
2021-11-17 11:59:35 +01:00
Henry Castro
969ca88846 browser: rename 'lool' -> 'cool'
Change-Id: I1abd3448b206e62c016ba13d0c0e052ee55dd5da
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-17 09:17:27 +01:00
Henry Castro
8a4b111e8f rename var LOLEAFLET_LOGGING to
COOL_LOGGING

Change-Id: I155a829b3ad947e03363e5020aa71a104aaa8c00
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
e5c1d0e637 initial rename loleaflet -> browser
Change-Id: Ief7edfe7e3ff3a0a1ec24b4dc106bdeee5d0f8ff
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00