From 701bd3c9439ebe4a6a5f72d5bae6605be19b9e6a Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 23:34:34 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- .../plugins/cordova-plugin-chrome-apps-common/stubs.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js diff --git a/js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js b/js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js new file mode 100644 index 0000000..94bacb3 --- /dev/null +++ b/js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js @@ -0,0 +1,10 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +exports.createStub = function(obj, propName, value) { + obj.__defineGetter__(propName, function() { + console.warn('Access made to stub: ' + obj.__namespace__ + '.' + propName); + return value; + }); +};