From a810d0248dd9f1099ce15809f8e1e75eedbff8e6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 Sep 2020 18:11:51 +0200 Subject: plugins --- .../cordova-plugin-file/www/browser/isChrome.js | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 StoneIsland/plugins/cordova-plugin-file/www/browser/isChrome.js (limited to 'StoneIsland/plugins/cordova-plugin-file/www/browser/isChrome.js') diff --git a/StoneIsland/plugins/cordova-plugin-file/www/browser/isChrome.js b/StoneIsland/plugins/cordova-plugin-file/www/browser/isChrome.js new file mode 100644 index 00000000..853277d7 --- /dev/null +++ b/StoneIsland/plugins/cordova-plugin-file/www/browser/isChrome.js @@ -0,0 +1,26 @@ +/* + * + * 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 = function () { + // window.webkitRequestFileSystem and window.webkitResolveLocalFileSystemURL are available only in Chrome and + // possibly a good flag to indicate that we're running in Chrome + return window.webkitRequestFileSystem && window.webkitResolveLocalFileSystemURL; +}; -- cgit v1.2.3-70-g09d2