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

Commit

Permalink
Added 1drv.ms
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayden committed Jan 14, 2020
1 parent 58f1eea commit 18d0904
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unofficial-webapp-office.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Window {

url: Qt.application.arguments[1]

// This whole section needs to be re-structured into something easier to maintain:

onNewViewRequested: function(request) {
if (request.requestedUrl.toString().includes('live.com')) {
var newWindow = windowComponent.createObject(windowParent);
Expand All @@ -24,6 +26,10 @@ Window {
var newWindow = windowComponent.createObject(windowParent);
request.openIn(newWindow.webView);
}
else if (request.requestedUrl.toString().includes('1drv.ms')) {
var newWindow = windowComponent.createObject(windowParent);
request.openIn(newWindow.webView);
}
else if (request.requestedUrl.toString().includes('office.com')) {
var newWindow = windowComponent.createObject(windowParent);
request.openIn(newWindow.webView);
Expand Down

0 comments on commit 18d0904

Please sign in to comment.