|
1 | | -import analytics from '../lib/analytics'; |
2 | | - |
3 | 1 | const OPEN_MODAL = 'scratch-gui/modals/OPEN_MODAL'; |
4 | 2 | const CLOSE_MODAL = 'scratch-gui/modals/CLOSE_MODAL'; |
5 | 3 |
|
@@ -59,51 +57,39 @@ const closeModal = function (modal) { |
59 | 57 | }; |
60 | 58 | }; |
61 | 59 | const openBackdropLibrary = function () { |
62 | | - analytics.pageview('/libraries/backdrops'); |
63 | 60 | return openModal(MODAL_BACKDROP_LIBRARY); |
64 | 61 | }; |
65 | 62 | const openCameraCapture = function () { |
66 | | - analytics.pageview('/modals/camera'); |
67 | 63 | return openModal(MODAL_CAMERA_CAPTURE); |
68 | 64 | }; |
69 | 65 | const openCostumeLibrary = function () { |
70 | | - analytics.pageview('/libraries/costumes'); |
71 | 66 | return openModal(MODAL_COSTUME_LIBRARY); |
72 | 67 | }; |
73 | 68 | const openExtensionLibrary = function () { |
74 | | - analytics.pageview('/libraries/extensions'); |
75 | 69 | return openModal(MODAL_EXTENSION_LIBRARY); |
76 | 70 | }; |
77 | 71 | const openImportInfo = function () { |
78 | | - analytics.pageview('modals/import'); |
79 | 72 | return openModal(MODAL_IMPORT_INFO); |
80 | 73 | }; |
81 | 74 | const openLoadingProject = function () { |
82 | | - analytics.pageview('modals/loading'); |
83 | 75 | return openModal(MODAL_LOADING_PROJECT); |
84 | 76 | }; |
85 | 77 | const openPreviewInfo = function () { |
86 | | - analytics.pageview('/modals/preview'); |
87 | 78 | return openModal(MODAL_PREVIEW_INFO); |
88 | 79 | }; |
89 | 80 | const openSoundLibrary = function () { |
90 | | - analytics.pageview('/libraries/sounds'); |
91 | 81 | return openModal(MODAL_SOUND_LIBRARY); |
92 | 82 | }; |
93 | 83 | const openSpriteLibrary = function () { |
94 | | - analytics.pageview('/libraries/sprites'); |
95 | 84 | return openModal(MODAL_SPRITE_LIBRARY); |
96 | 85 | }; |
97 | 86 | const openSoundRecorder = function () { |
98 | | - analytics.pageview('/modals/microphone'); |
99 | 87 | return openModal(MODAL_SOUND_RECORDER); |
100 | 88 | }; |
101 | 89 | const openConnectionModal = function () { |
102 | | - analytics.pageview('/modals/connection'); |
103 | 90 | return openModal(MODAL_CONNECTION); |
104 | 91 | }; |
105 | 92 | const openTipsLibrary = function () { |
106 | | - analytics.pageview('/modals/tips'); |
107 | 93 | return openModal(MODAL_TIPS_LIBRARY); |
108 | 94 | }; |
109 | 95 | const closeBackdropLibrary = function () { |
|
0 commit comments