From 411a8bf8e8dcf23a3c4c7677c375540a47a272d8 Mon Sep 17 00:00:00 2001 From: Norman Breau Date: Tue, 29 Oct 2024 22:32:17 -0300 Subject: [PATCH] fix(ios): Entry.toURL() to produce DOM-usable uri when using scheme-hosted webview --- plugin.xml | 3 +++ www/ios/Entry.js | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 www/ios/Entry.js diff --git a/plugin.xml b/plugin.xml index ba3fa781..5cd7e2f2 100644 --- a/plugin.xml +++ b/plugin.xml @@ -182,6 +182,9 @@ to config.xml in order for the application to find previously stored files. + + + diff --git a/www/ios/Entry.js b/www/ios/Entry.js new file mode 100644 index 00000000..68e7e019 --- /dev/null +++ b/www/ios/Entry.js @@ -0,0 +1,33 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * +*/ + +module.exports = { + /** + * Return a URL that can be used to identify this entry. + * Use a URL that can be used to as the src attribute of a