Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zfir committed Jun 21, 2024
1 parent a2d4e24 commit 7b0612d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ios/CDVRoomPlan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class CDVRoomPlan: CDVPlugin, RoomCaptureSessionDelegate, RoomCaptureViewDelegat
super.init()
}

@objc(openRoomPlan:)
func openRoomPlan(command: CDVInvokedUrlCommand) {
@objc(open:)
func open(command: CDVInvokedUrlCommand) {
self.command = command
roomCaptureView = RoomCaptureView(frame: viewController.view.bounds)
roomCaptureView.captureSession.delegate = self
Expand Down
6 changes: 3 additions & 3 deletions www/CDVRoomPlan.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var exec = require("cordova/exec");

exports.openRoomPlan = function (success, error) {
console.log("CDVRoomPlan.js: openRoomPlan");
exec(success, error, "CDVRoomPlan", "openRoomPlan", []);
exports.open = function (success, error) {
console.log("CDVRoomPlan.js: open");
exec(success, error, "CDVRoomPlan", "open", []);
};

exports.isSupported = function (success, error) {
Expand Down

0 comments on commit 7b0612d

Please sign in to comment.