mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 08:38:30 -05:00
added project_editor_open and _close analytics events
This commit is contained in:
parent
2762cdf271
commit
abd8a1bb86
2 changed files with 2 additions and 0 deletions
|
@ -381,6 +381,7 @@ export default class ScratchJr {
|
|||
ScratchJr.stopStripsFromTop(e);
|
||||
ScratchJr.unfocus(e);
|
||||
ScratchJr.saveProject(e, ScratchJr.flippage);
|
||||
iOS.analyticsEvent('editor', 'project_editor_close');
|
||||
}
|
||||
|
||||
static flippage () {
|
||||
|
|
|
@ -5,6 +5,7 @@ import Record from '../editor/ui/Record';
|
|||
|
||||
export function editorMain () {
|
||||
iOS.getsettings(doNext);
|
||||
iOS.analyticsEvent('editor', 'project_editor_open');
|
||||
function doNext (str) {
|
||||
var list = str.split(',');
|
||||
iOS.path = list[1] == '0' ? list[0] + '/' : undefined;
|
||||
|
|
Loading…
Reference in a new issue