Skip to content

Commit

Permalink
Merge pull request #23 from goldim/mobile-examples-works-for-gecko-too
Browse files Browse the repository at this point in the history
Added support of mobile examples for gecko engine

Thanks @goldim !
  • Loading branch information
hkollmann authored Dec 6, 2023
2 parents 61231a4 + 4b7472d commit aebc6d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/class/qxl/demobrowser/demo/mobile/Fingers.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ qx.Class.define("qxl.demobrowser.demo.mobile.Fingers", {
var modernIe =
engine == "mshtml" &&
qx.core.Environment.get("browser.documentmode") > 10;
if (engine != "webkit" && !modernIe) {
if (engine != "webkit" && engine != "gecko" && !modernIe) {
var warningLabelStyle = {
color: "green",
position: "absolute",
Expand All @@ -82,7 +82,7 @@ qx.Class.define("qxl.demobrowser.demo.mobile.Fingers", {
root.add(label);
label.setAttribute(
"innerHTML",
"<b>This demo is intended for WebKit-based browsers and IE11+.</b>"
"<b>This demo is intended for WebKit-based, Gecko-based browsers and IE11+.</b>"
);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions source/class/qxl/demobrowser/demo/mobile/PingPong.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ qx.Class.define("qxl.demobrowser.demo.mobile.PingPong", {
var modernIe =
engine == "mshtml" &&
qx.core.Environment.get("browser.documentmode") > 10;
if (engine != "webkit" && !modernIe) {
if (engine != "webkit" && engine != "gecko" && !modernIe) {
var warningLabelStyle = {
color: "green",
position: "absolute",
Expand All @@ -94,7 +94,7 @@ qx.Class.define("qxl.demobrowser.demo.mobile.PingPong", {
root.add(label);
label.setAttribute(
"innerHTML",
"<b>This demo is intended for WebKit-based browsers and IE11+.</b>"
"<b>This demo is intended for WebKit-based, Gecko-based browsers and IE11+.</b>"
);
return;
}
Expand Down

0 comments on commit aebc6d3

Please sign in to comment.