Skip to content

Commit 9399f32

Browse files
committed
FB API calls complete
1 parent a499345 commit 9399f32

File tree

5 files changed

+363
-167
lines changed

5 files changed

+363
-167
lines changed

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ src/utils/array/StableSort.js
99
src/utils/object/Extend.js
1010
src/structs/RTree.js
1111
src/boot/ScaleManager.js
12-
src/fbinstant/

.eslintrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"CANVAS_RENDERER": true,
1717
"Phaser": true,
1818
"process": true,
19-
"ActiveXObject": true
19+
"ActiveXObject": true,
20+
"FBInstant": true
2021
},
2122
"rules": {
2223

src/fbinstant/AdInstance.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @author Richard Davey <rich@photonstorm.com>
3+
* @copyright 2018 Photon Storm Ltd.
4+
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
5+
*/
6+
7+
var AdInstance = function (instance, video)
8+
{
9+
return {
10+
instance: instance,
11+
placementID: instance.getPlacementID(),
12+
shown: false,
13+
video: video
14+
};
15+
};
16+
17+
module.exports = AdInstance;

0 commit comments

Comments
 (0)