Skip to content

Commit 8a482f9

Browse files
committed
Update Qt sample to work now that we use ES modules in the Glean library
1 parent eece10c commit 8a482f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/qt-qml-app/main.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import QtQuick 2.0
66
import QtQuick.Controls 2.0
77
import QtGraphicalEffects 1.15
88

9-
import "../../glean/dist/qt.js" as Glean;
9+
import "../../glean/dist/glean.js" as Glean;
1010
// These must be imported after Glean because they rely on Glean being in the environment.
1111
import "./generated/pings.js" as Pings;
1212
import "./generated/sample.js" as Metrics;
@@ -66,7 +66,7 @@ Rectangle {
6666

6767
Component.onCompleted: {
6868
// Initialize Glean.
69-
Glean.Glean.initialize("qt-qml-app", true, { debug: { logPings: true }});
69+
Glean.Glean.default.initialize("qt-qml-app", true, { debug: { logPings: true }});
7070
Metrics.sample.appStarted.set();
7171
// !IMPORTANT!
7272
// If this message is changed the check in bin/qt-js-check **must** be updated.

0 commit comments

Comments
 (0)