Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Commit 18d0904

Browse files
author
Hayden
authored
Added 1drv.ms
1 parent 58f1eea commit 18d0904

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

unofficial-webapp-office.qml

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Window {
1515

1616
url: Qt.application.arguments[1]
1717

18+
// This whole section needs to be re-structured into something easier to maintain:
19+
1820
onNewViewRequested: function(request) {
1921
if (request.requestedUrl.toString().includes('live.com')) {
2022
var newWindow = windowComponent.createObject(windowParent);
@@ -24,6 +26,10 @@ Window {
2426
var newWindow = windowComponent.createObject(windowParent);
2527
request.openIn(newWindow.webView);
2628
}
29+
else if (request.requestedUrl.toString().includes('1drv.ms')) {
30+
var newWindow = windowComponent.createObject(windowParent);
31+
request.openIn(newWindow.webView);
32+
}
2733
else if (request.requestedUrl.toString().includes('office.com')) {
2834
var newWindow = windowComponent.createObject(windowParent);
2935
request.openIn(newWindow.webView);

0 commit comments

Comments
 (0)