Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
3826715f0c
commit
701bd3c943
10
js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js
vendored
Normal file
10
js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js
vendored
Normal file
|
@ -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;
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user